diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2026-08-12 17:31:36 +0200 |
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2026-08-12 17:31:36 +0200 |
| commit | 69ab93daf41bb548381e70c4aa66448bc94db6fa (patch) | |
| tree | cc8142515903c7f63e5a85695d6f800cd98aff75 /tests/conftest.py | |
| parent | 7848a3be98c3c470baf3d80cf53fd63af4ca041e (diff) | |
| parent | e0cd553185383f3ccf94a04220c64f8cbe610a99 (diff) | |
| download | fietsboek-69ab93daf41bb548381e70c4aa66448bc94db6fa.tar.gz fietsboek-69ab93daf41bb548381e70c4aa66448bc94db6fa.tar.bz2 fietsboek-69ab93daf41bb548381e70c4aa66448bc94db6fa.zip | |
Merge remote-tracking branch 'origin/cli-tests'
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): |
