0006-tests-clear-cache-between-tests-30458.patch
tests/conftest.py | ||
---|---|---|
4 | 4 |
import django_webtest |
5 | 5 | |
6 | 6 |
from django.core.files import File |
7 |
from django.core.cache import cache |
|
7 | 8 |
from io import BytesIO |
8 | 9 | |
9 | 10 |
from .utils import make_resource |
... | ... | |
14 | 15 |
wtm = django_webtest.WebTestMixin() |
15 | 16 |
wtm._patch_settings() |
16 | 17 |
request.addfinalizer(wtm._unpatch_settings) |
18 |
cache.clear() |
|
17 | 19 |
return django_webtest.DjangoTestApp() |
18 | 20 | |
19 | 21 | |
20 |
- |