Test: reset MEDIA_ROOT after each test

We need uploaded pictograms path to be deterministic.
This commit is contained in:
Yohan Boniface 2023-11-13 19:28:30 +01:00
parent 0562055b65
commit 7810cba660

View file

@ -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()