diff options
author | Frederick Muriuki Muriithi | 2023-08-07 12:17:08 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-07 12:29:09 +0300 |
commit | 91061a7b4af2aaa7c7c97d0cd215a0dc28a42419 (patch) | |
tree | 59ae52f8ebebb86ec3917ad387d9b7d136480dcc /tests/unit/conftest.py | |
parent | af9ab012a3763e3046d8c42a8af8fd5c06e3df04 (diff) | |
download | gn-auth-91061a7b4af2aaa7c7c97d0cd215a0dc28a42419.tar.gz |
Fix tests
Diffstat (limited to 'tests/unit/conftest.py')
-rw-r--r-- | tests/unit/conftest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 4180528..2230f7a 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -5,7 +5,7 @@ from tempfile import TemporaryDirectory import pytest -from gn_auth.app import create_app +from gn_auth import create_app @pytest.fixture(scope="session") def fxtr_app(): @@ -16,7 +16,8 @@ def fxtr_app(): f'testdb_{datetime.now().strftime("%Y%m%dT%H%M%S")}') app = create_app({ "TESTING": True, "AUTH_DB": testdb, - "OAUTH2_ACCESS_TOKEN_GENERATOR": "tests.unit.auth.test_token.gen_token" + "OAUTH2_ACCESS_TOKEN_GENERATOR": "tests.unit.auth.test_token.gen_token", + "SECRET_KEY": "qQIrgiK29kXZU6v8D09y4uw_sk8I4cqgNZniYUrRoUk" }) app.testing = True yield app |