Skip to content
Snippets Groups Projects
Commit 7d7f6134 authored by Borja Gimeno's avatar Borja Gimeno
Browse files

fix: uncheck as vcr test

parent 4ec8039a
No related branches found
No related tags found
No related merge requests found
Pipeline #36809 passed
This commit is part of merge request !74. Comments created here will be created in the context of that merge request.
...@@ -15,14 +15,6 @@ from odoo_somconnexio_python_client.resources.contract import ( ...@@ -15,14 +15,6 @@ from odoo_somconnexio_python_client.resources.contract import (
) )
@pytest.fixture(scope="module")
def vcr_config():
return {
# Replace the API-KEY request header with "DUMMY" in cassettes
"filter_headers": [("API-KEY", "DUMMY")],
}
class ContractTests(unittest.TestCase): class ContractTests(unittest.TestCase):
@pytest.mark.vcr() @pytest.mark.vcr()
def test_search_resource_not_found(self): def test_search_resource_not_found(self):
...@@ -107,7 +99,6 @@ class ContractTests(unittest.TestCase): ...@@ -107,7 +99,6 @@ class ContractTests(unittest.TestCase):
assert paging.sortBy == "code" assert paging.sortBy == "code"
assert paging.sortOrder == "DESCENDENT" assert paging.sortOrder == "DESCENDENT"
@pytest.mark.vcr()
def test_search_contract_by_customer_ref_with_pagination_bad_limit(self): def test_search_contract_by_customer_ref_with_pagination_bad_limit(self):
self.assertRaises( self.assertRaises(
NotNumericLimit, NotNumericLimit,
...@@ -116,7 +107,6 @@ class ContractTests(unittest.TestCase): ...@@ -116,7 +107,6 @@ class ContractTests(unittest.TestCase):
limit="XXX", limit="XXX",
) )
@pytest.mark.vcr()
def test_search_contract_by_customer_ref_with_pagination_bad_offset(self): def test_search_contract_by_customer_ref_with_pagination_bad_offset(self):
self.assertRaises( self.assertRaises(
NotNumericOffset, NotNumericOffset,
...@@ -126,7 +116,6 @@ class ContractTests(unittest.TestCase): ...@@ -126,7 +116,6 @@ class ContractTests(unittest.TestCase):
offset="XXX", offset="XXX",
) )
@pytest.mark.vcr()
def test_search_contract_by_customer_ref_with_pagination_bad_sort_order(self): def test_search_contract_by_customer_ref_with_pagination_bad_sort_order(self):
self.assertRaises( self.assertRaises(
InvalidSortOrder, InvalidSortOrder,
......
...@@ -16,14 +16,6 @@ def assert_model(contracts): ...@@ -16,14 +16,6 @@ def assert_model(contracts):
assert contract.current_tariff_product == "SE_SC_REC_BA_F_600" assert contract.current_tariff_product == "SE_SC_REC_BA_F_600"
@pytest.fixture(scope="module")
def vcr_config():
return {
# Replace the API-KEY request header with "DUMMY" in cassettes
"filter_headers": [("API-KEY", "DUMMY")],
}
class FiberContractsToPackTests(unittest.TestCase): class FiberContractsToPackTests(unittest.TestCase):
@pytest.mark.vcr() @pytest.mark.vcr()
def test_search_by_partner_ref(self): def test_search_by_partner_ref(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment