Skip to content
Snippets Groups Projects

Add OneShot and OneShotCatalog resources

Merged Daniel Palomar requested to merge feat/add-one-shot-catalog-resource into master
Files
2
@@ -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):
@pytest.mark.vcr()
def test_search_resource_not_found(self):
@@ -103,7 +95,6 @@ class ContractTests(unittest.TestCase):
assert paging.sortBy == "code"
assert paging.sortOrder == "DESCENDENT"
@pytest.mark.vcr()
def test_search_contract_by_customer_ref_with_pagination_bad_limit(self):
self.assertRaises(
NotNumericLimit,
@@ -112,7 +103,6 @@ class ContractTests(unittest.TestCase):
limit="XXX",
)
@pytest.mark.vcr()
def test_search_contract_by_customer_ref_with_pagination_bad_offset(self):
self.assertRaises(
NotNumericOffset,
@@ -122,7 +112,6 @@ class ContractTests(unittest.TestCase):
offset="XXX",
)
@pytest.mark.vcr()
def test_search_contract_by_customer_ref_with_pagination_bad_sort_order(self):
self.assertRaises(
InvalidSortOrder,
Loading