tests: prevent loading of a2 settings by rbac tests (#42694)
This commit is contained in:
parent
ce943b8d0e
commit
ce42f45e74
|
@ -3,8 +3,8 @@ import os
|
|||
from django.conf import global_settings
|
||||
|
||||
MIDDLEWA_CLASSES = global_settings.MIDDLEWARE
|
||||
|
||||
SECRET_KEY = 'whatever'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
|
@ -17,12 +17,3 @@ INSTALLED_APPS = (
|
|||
'django.contrib.contenttypes',
|
||||
'django_rbac',
|
||||
)
|
||||
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
|
||||
TEMPLATES = [{'DIRS': []}]
|
||||
|
||||
if 'AUTHENTIC2_SETTINGS_FILE' in os.environ:
|
||||
with open(os.environ['AUTHENTIC2_SETTINGS_FILE']) as fd:
|
||||
exec(fd.read())
|
||||
|
|
Loading…
Reference in New Issue