Delete environment to ensure consistent tests
MODIFY
tests/conftest.py
tests/conftest.py
import json
+from os import environ
from os.path import dirname, join as join_path
from typing import Union
config.config_file = join_path(TESTS_DIR, "config.json")
config.env_file = join_path(TESTS_DIR, ".env")
+# Delete environment to ensure consistent tests
+for key in config.env_keys:
+ try:
+ del environ[key]
+ except KeyError:
+ pass
+
def load_mock(name: str):
filename = join_path(MOCK_DATA_DIR, name)

Delete environment to ensure consistent tests