diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 5 |
1 files changed, 3 insertions, 2 deletions
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() |