From c81a3d948b3bc0db20a530fa1aa428b35b5d6145 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 20 Dec 2023 07:11:40 +0300 Subject: Provide instance_path at client creation. --- tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/conftest.py b/tests/conftest.py index d8aca81..41dcac1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -37,9 +37,10 @@ def redis_url(): @pytest.fixture(scope="module") def client(redis_url): # pylint: disable=[redefined-outer-name] "Fixture for test client" - app = create_app(f"{os.path.abspath('.')}/tests/test_instance_dir") + app = create_app(os.environ.get("QCAPP_INSTANCE_PATH")) app.config.update({ - "REDIS_URL": redis_url + "REDIS_URL": redis_url, + "TESTING": True }) yield app.test_client() -- cgit v1.2.3