moved files

This commit is contained in:
Brian Bjarke Jensen
2024-07-13 23:35:15 +02:00
parent 24e1c44f5e
commit ba1ba027f0
3 changed files with 3 additions and 33 deletions
-3
View File
@@ -1,3 +0,0 @@
from __future__ import annotations
from .check_env import check_env
-25
View File
@@ -1,25 +0,0 @@
"""Definition of check_env function."""
from __future__ import annotations
import os
def check_env() -> None:
"""Check necessary environment variables are set."""
necesasary_var_list = {
'MONGO_HOST',
'MONGO_DB',
'MONGO_COLLECTION',
'MONGO_USER',
'MONGO_PASSWORD',
'MINIO_ENDPOINT',
'MINIO_ACCESS_KEY',
'MINIO_SECRET_KEY',
}
for env_var in necesasary_var_list:
# ensure env var set
assert (
env_var in os.environ
), (
f"environment variable not set: {env_var}"
)