Skip to content

Commit

Permalink
[FIX] fast_api_auth_jwt_demo: sync registry before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jun 19, 2023
1 parent 439b27b commit faa92ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fastapi_auth_jwt_demo/tests/test_fastapi_auth_jwt_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

@tests.tagged("post_install", "-at_install")
class TestEndToEnd(tests.HttpCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env.ref(
"fastapi_auth_jwt_demo.fastapi_endpoint_auth_jwt_demo"
).action_sync_registry()

def _get_token(self, aud=None, email=None):
validator = self.env["auth.jwt.validator"].search([("name", "=", "demo")])
payload = {
Expand Down

0 comments on commit faa92ad

Please sign in to comment.