From 096ffd56e9b8f496d9c431e88388674870eee2f2 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 17 Mar 2025 21:54:52 +0000 Subject: [PATCH] added explicit env var checking --- shared/repositories/tests/integration/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/repositories/tests/integration/conftest.py b/shared/repositories/tests/integration/conftest.py index 9e47163..a34243d 100644 --- a/shared/repositories/tests/integration/conftest.py +++ b/shared/repositories/tests/integration/conftest.py @@ -37,6 +37,10 @@ if test_env_path.exists(): load_dotenv(test_env_path.as_posix()) # define test environment variables +assert 'MINIO_ENDPOINT' in os.environ, 'MINIO_ENDPOINT not set' +assert 'MINIO_ACCESS_KEY' in os.environ, 'MINIO_ACCESS_KEY not set' +assert 'MINIO_SECRET_KEY' in os.environ, 'MINIO_SECRET_KEY not set' +assert 'MONGO_ENDPOINT' in os.environ, 'MONGO_ENDPOINT not set' env_var_map = { 'MINIO_BUCKET_NAME': 'test-bucket', 'MINIO_OBJECT_NAME': 'test-object',