Test: reset MEDIA_ROOT after each test
We need uploaded pictograms path to be deterministic.
This commit is contained in:
parent
0562055b65
commit
7810cba660
1 changed files with 1 additions and 4 deletions
|
@ -24,11 +24,8 @@ def pytest_configure(config):
|
||||||
settings.MEDIA_ROOT = TMP_ROOT
|
settings.MEDIA_ROOT = TMP_ROOT
|
||||||
|
|
||||||
|
|
||||||
def pytest_unconfigure(config):
|
|
||||||
shutil.rmtree(TMP_ROOT, ignore_errors=True)
|
|
||||||
|
|
||||||
|
|
||||||
def pytest_runtest_teardown():
|
def pytest_runtest_teardown():
|
||||||
|
shutil.rmtree(TMP_ROOT, ignore_errors=True)
|
||||||
cache.clear()
|
cache.clear()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue