From c0b49a618d96f2088234dbb4c0ca8006475d432e Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 18 Apr 2024 22:30:46 +0200 Subject: also remove user data on test teardown --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/conftest.py b/tests/conftest.py index 94f795a..cd74b0b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -75,6 +75,8 @@ def _cleanup_data(app_settings): data_dir = Path(app_settings["fietsboek.data_dir"]) if (data_dir / "tracks").is_dir(): shutil.rmtree(data_dir / "tracks") + if (data_dir / "users").is_dir(): + shutil.rmtree(data_dir / "users") @pytest.fixture(scope='module') def app(app_settings, dbengine, tmp_path_factory): -- cgit v1.2.3