mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
03e1006dc3
commit
ab235be2fc
@ -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')
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user