captcha: fix tests failing to start

Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalpati 2017-09-07 14:15:41 +05:30 committed by James Valleroy
parent 03e1006dc3
commit ab235be2fc
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 21 additions and 14 deletions

View File

@ -161,7 +161,7 @@ def on_server_stop():
def configure_django():
"""Setup Django configuration in the absense of .settings file"""
"""Setup Django configuration in the absence of .settings file"""
logging_configuration = {
'version': 1,
'disable_existing_loggers': False,
@ -208,14 +208,16 @@ def configure_django():
},
]
applications = ['bootstrapform',
'captcha',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'stronghold',
'plinth',
'axes']
applications = [
'axes',
'captcha',
'bootstrapform',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'stronghold',
'plinth',
]
applications += module_loader.get_modules_to_load()
sessions_directory = os.path.join(cfg.data_dir, 'sessions')

View File

@ -30,11 +30,15 @@ DATABASES = {
}
}
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'plinth',
)
INSTALLED_APPS = [
'captcha',
'bootstrapform',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'stronghold',
'plinth',
]
# These are included here solely to suppress Django warnings
# during testing setup

View File

@ -2,6 +2,7 @@ cherrypy >= 3.0
configobj
coverage >= 3.7
django >= 1.11.0
django-axes
django-bootstrap-form
django-simple-captcha
django-stronghold