aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2024-04-18 22:30:46 +0200
committerDaniel Schadt <kingdread@gmx.de>2024-04-18 22:30:46 +0200
commitc0b49a618d96f2088234dbb4c0ca8006475d432e (patch)
tree4a4b787e261d5399ce4e73cffe02d72c4158b340
parent7f526efeed7b807a3b56f465637bee5dc8a27e3d (diff)
downloadfietsboek-c0b49a618d96f2088234dbb4c0ca8006475d432e.tar.gz
fietsboek-c0b49a618d96f2088234dbb4c0ca8006475d432e.tar.bz2
fietsboek-c0b49a618d96f2088234dbb4c0ca8006475d432e.zip
also remove user data on test teardown
-rw-r--r--tests/conftest.py2
1 files changed, 2 insertions, 0 deletions
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):