diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2026-01-10 16:54:50 +0100 |
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2026-01-10 16:54:50 +0100 |
| commit | 3ba5031a74bc0dc7aab16dc8eb349b871c012a1c (patch) | |
| tree | 317ede09b8adf94ceedf75bbd176be39c83b1a69 /tests/conftest.py | |
| parent | 8ba285d4d1cccafcf4cb6b7c7cb5c92196d7a75e (diff) | |
| download | fietsboek-3ba5031a74bc0dc7aab16dc8eb349b871c012a1c.tar.gz fietsboek-3ba5031a74bc0dc7aab16dc8eb349b871c012a1c.tar.bz2 fietsboek-3ba5031a74bc0dc7aab16dc8eb349b871c012a1c.zip | |
add tests for fietsctl maintenance-mode
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): |
