mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
isolate cache
This commit is contained in:
@@ -9,6 +9,7 @@ import socket
|
||||
import copy
|
||||
import sys
|
||||
import traceback
|
||||
import random
|
||||
|
||||
# Centos-7 doesn't include the svg mime type
|
||||
# /usr/lib64/python/mimetypes.py
|
||||
@@ -20,6 +21,15 @@ from split_settings.tools import optional, include
|
||||
# Load default settings.
|
||||
from defaults import * # NOQA
|
||||
|
||||
# don't use memcache when running tests
|
||||
if "pytest" in sys.modules:
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
'LOCATION': 'unique-{}'.format(random.randint(0, sys.maxint)),
|
||||
},
|
||||
}
|
||||
|
||||
# awx-manage shell_plus --notebook
|
||||
NOTEBOOK_ARGUMENTS = [
|
||||
'--NotebookApp.token=',
|
||||
|
||||
Reference in New Issue
Block a user