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 b0afac9 commit ab7a012
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"
)._handle_registry_sync()

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

0 comments on commit ab7a012

Please sign in to comment.