removed deprecated modules

This commit is contained in:
brian
2025-03-18 19:21:17 +00:00
parent 0b54ccaadb
commit a379270add
41 changed files with 10 additions and 2113 deletions
@@ -32,14 +32,17 @@ from shared.repositories.src.implementations import (
random.seed(13)
# define test environment variables
necessary_env_vars = {
'MINIO_ENDPOINT',
'MINIO_ACCESS_KEY',
'MINIO_SECRET_KEY',
'MONGO_ENDPOINT',
}
env_var_map = {
'MINIO_ENDPOINT': '192.168.1.2:9000',
'MINIO_ACCESS_KEY': '1rMQTezbALeJyOgAbYYE',
'MINIO_SECRET_KEY': 'O76GM756ybKYLFokZFJneaCoYwpaIbAlOdB7mcc0',
'MINIO_ENDPOINT': 'localhost:9000',
'MINIO_BUCKET_NAME': 'test-bucket',
'MINIO_OBJECT_NAME': 'test-object',
'MINIO_IMAGE_NAME': 'test-image',
'MONGO_ENDPOINT': 'mongodb://192.168.1.2:27017/',
'MONGO_DB': 'test-db',
'MONGO_COLLECTION': 'test-collection',
}
@@ -53,6 +56,9 @@ def setup_env(
# load in optional local test environment variables
test_env_path = Path(__file__).parent.parent.parent.parent.parent / 'test.env'
load_dotenv(test_env_path)
# check if necessary env vars are set
for key in necessary_env_vars:
assert key in os.environ, f'{key} not set'
# set testing env vars
for key, val in env_var_map.items():
# set env var