From adbb50da936a68c24ada1e3a28ced2cd2c4259fb Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 8 Feb 2019 06:55:56 +0100 Subject: [PATCH 06/13] tests: clear cache between tests (#30458) --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 4c7838a..75fe8e8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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() -- 2.20.1