mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
isolate cache
This commit is contained in:
@@ -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():
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user