mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Use local memory cache for unit tests
This commit is contained in:
parent
4f74afdf19
commit
a4f5b0ae71
@ -72,6 +72,12 @@ class BaseTestMixin(object):
|
||||
job_status_dir = tempfile.mkdtemp()
|
||||
self._temp_paths.append(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()
|
||||
|
||||
def tearDown(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user