mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Use local memory cache for unit tests
This commit is contained in:
@@ -72,6 +72,12 @@ class BaseTestMixin(object):
|
|||||||
job_status_dir = tempfile.mkdtemp()
|
job_status_dir = tempfile.mkdtemp()
|
||||||
self._temp_paths.append(job_status_dir)
|
self._temp_paths.append(job_status_dir)
|
||||||
settings.JOBOUTPUT_ROOT = os.path.abspath(job_status_dir)
|
settings.JOBOUTPUT_ROOT = os.path.abspath(job_status_dir)
|
||||||
|
settings.CACHES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||||
|
'LOCATION': 'unittests'
|
||||||
|
}
|
||||||
|
}
|
||||||
self._start_time = time.time()
|
self._start_time = time.time()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user