From 72e3a384abb539217e49973a7a6681219b5d92cb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 13 May 2024 07:06:41 +0300 Subject: Provide missing `CLIENTS_SSL_PUBLIC_KEYS_DIR` config for tests. --- tests/unit/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index dd94899..dcf4003 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -12,6 +12,8 @@ from gn_auth import create_app def fxtr_app(): """Fixture: setup the test app""" # Do some setup + testsroot = os.path.dirname(__file__) + with TemporaryDirectory() as testdir: testdb = Path(testdir).joinpath( f'testdb_{datetime.now().strftime("%Y%m%dT%H%M%S")}') @@ -23,7 +25,8 @@ def fxtr_app(): "OAUTH2_ACCESS_TOKEN_GENERATOR": "tests.unit.auth.test_token.gen_token", "SECRET_KEY": "qQIrgiK29kXZU6v8D09y4uw_sk8I4cqgNZniYUrRoUk", "UPLOADS_DIR": testuploadsdir, - "SSL_PRIVATE_KEY": f"{os.path.dirname(__file__)}/test-ssl-private-key.pem" + "SSL_PRIVATE_KEY": f"{testsroot}/test-ssl-private-key.pem", + "CLIENTS_SSL_PUBLIC_KEYS_DIR": f"{testsroot}/test-public-keys-dir" }) app.testing = True yield app -- cgit v1.2.3