tests: clear cache between tests (#30458)

This commit is contained in:
Benjamin Dauvergne 2019-02-08 06:55:56 +01:00
parent c6bc553741
commit 91c12958b5
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from httmock import urlmatch, HTTMock, response
import django_webtest
from django.core.files import File
from django.core.cache import cache
from io import BytesIO
from .utils import make_resource
@ -14,6 +15,7 @@ def app(request):
wtm = django_webtest.WebTestMixin()
wtm._patch_settings()
request.addfinalizer(wtm._unpatch_settings)
cache.clear()
return django_webtest.DjangoTestApp()