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,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=',