Skip to content
Snippets Groups Projects
Commit c27a96d9 authored by Saket Agrahari's avatar Saket Agrahari
Browse files

conftest

parent 1f2df23e
No related branches found
No related tags found
No related merge requests found
Pipeline #94180 failed
This commit is part of merge request !424. Comments created here will be created in the context of that merge request.
......@@ -56,11 +56,13 @@ def pytest_configure(config):
"""Set an environment variable before loading any test modules."""
# Set environment variables for the test session
os.environ["OSS_PARAMS_FILENAME"] = "gso/oss-params-example.json"
os.environ["GSO_SERVICE_CONFIG"] = "gso/gso-services-config.json"
os.environ["TESTING"] = "true"
# Register finalizers to clean up after tests are done
def cleanup() -> None:
del os.environ["OSS_PARAMS_FILENAME"]
del os.environ["GSO_SERVICE_CONFIG"]
del os.environ["TESTING"]
pytest.session_cleanup = cleanup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment