From 400706e7304e77649cab6a5e1ca3f6dd6c957093 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 17 Mar 2025 22:09:48 +0000 Subject: [PATCH] moved env var checks --- shared/repositories/tests/integration/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/repositories/tests/integration/conftest.py b/shared/repositories/tests/integration/conftest.py index a34243d..10d88a6 100644 --- a/shared/repositories/tests/integration/conftest.py +++ b/shared/repositories/tests/integration/conftest.py @@ -209,6 +209,11 @@ def image_repo( populate_env, ) -> Iterator[ImageRepository]: """Image repository fixture.""" + # 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' repo = ImageRepository() repo.connect() yield repo