isolate cache

This commit is contained in:
chris meyers
2018-05-16 16:43:29 -04:00
parent 7f214f5ad2
commit 04767641af
12 changed files with 93 additions and 64 deletions

View File

@@ -9,7 +9,6 @@ from six.moves import xrange
# Django
from django.core.urlresolvers import resolve
from django.core.cache import cache
from django.utils.six.moves.urllib.parse import urlparse
from django.utils import timezone
from django.contrib.auth.models import User
@@ -57,14 +56,6 @@ def swagger_autogen(requests=__SWAGGER_REQUESTS__):
return requests
@pytest.fixture(autouse=True)
def clear_cache():
'''
Clear cache (local memory) for each test to prevent using cached settings.
'''
cache.clear()
@pytest.fixture(scope="session", autouse=True)
def celery_memory_broker():
'''