diff options
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index add3b3f..c31554d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -65,6 +65,8 @@ def clean_directory_content(path: Path): if path.is_dir(): shutil.rmtree(path) path.mkdir() + elif path.is_file(): + path.unlink() @pytest.fixture(autouse=True) @@ -85,6 +87,7 @@ def _cleanup_data(app_settings): clean_directory_content(data_dir / "tracks") clean_directory_content(data_dir / "users") clean_directory_content(data_dir / "journeys") + clean_directory_content(data_dir / "MAINTENANCE") @pytest.fixture(scope='module') def app(app_settings, dbengine, tmp_path_factory): |
