Skip to content

Commit

Permalink
setup config before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oplatek committed Nov 6, 2024
1 parent d00e151 commit 78e1115
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 78e1115

Please sign in to comment.