diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 00000000..7c402e10 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,10 @@ +# conftest.py +import pytest +import shutil +from factgenie import MAIN_CONFIG_PATH + +@pytest.fixture(scope="module", autouse=True) +def prepare_testing_config(): + # copy config_TEMPLATE.yml to config.yml + shutil.copy(MAIN_CONFIG_PATH.with_name("config_TEMPLATE.yml"), MAIN_CONFIG_PATH) + assert MAIN_CONFIG_PATH.exists() \ No newline at end of file