Project

General

Profile

0006-tests-clear-cache-between-tests-30458.patch

Benjamin Dauvergne, 08 Feb 2019 08:43 AM

Download (873 Bytes)

View differences:

Subject: [PATCH 06/13] tests: clear cache between tests (#30458)

 tests/conftest.py | 2 ++
 1 file changed, 2 insertions(+)
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
-