Skip to content

Commit cc7b7c6

Browse files
committed
fixup! [MIG] endpoint_auth_api_key: Migration to 19.0
1 parent 39f133f commit cc7b7c6

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

endpoint_auth_api_key/tests/test_endpoint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212

1313
class TestEndpoint(CommonEndpointAuthAPIKey):
14+
@classmethod
15+
def _setup_records(cls):
16+
super()._setup_records()
17+
1418
@mute_logger("endpoint.endpoint")
1519
def test_endpoint_validate_request_no_key(self):
1620
endpoint = self.endpoint.copy(

endpoint_auth_api_key/tests/test_endpoint_controller.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ class EndpointAuthApiKeyHttpCase(HttpCase, CommonEndpointAuthAPIKey):
1616
@classmethod
1717
def setUpClass(cls):
1818
super().setUpClass()
19-
# force sync for demo records
20-
cls.env["endpoint.endpoint"].search([])._handle_registry_sync()
21-
22-
def tearDown(self):
23-
# Clear cache for method ``ir.http.routing_map()``
24-
self.env.registry.clear_cache("routing")
25-
super().tearDown()
2619

2720
def _make_request(self, route, api_key=None, headers=None):
2821
headers = dict(headers or {})

0 commit comments

Comments
 (0)