From 7810cba66086dec3d209c488a92d6e53d1853bad Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 13 Nov 2023 19:28:30 +0100 Subject: [PATCH] Test: reset MEDIA_ROOT after each test We need uploaded pictograms path to be deterministic. --- umap/tests/conftest.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/umap/tests/conftest.py b/umap/tests/conftest.py index 3465994b..7e5e356c 100644 --- a/umap/tests/conftest.py +++ b/umap/tests/conftest.py @@ -24,11 +24,8 @@ def pytest_configure(config): settings.MEDIA_ROOT = TMP_ROOT -def pytest_unconfigure(config): - shutil.rmtree(TMP_ROOT, ignore_errors=True) - - def pytest_runtest_teardown(): + shutil.rmtree(TMP_ROOT, ignore_errors=True) cache.clear()