tests: do no launch test from django apps, they are not made for this
This commit is contained in:
parent
60f22b4423
commit
34cde62bdd
|
@ -1,45 +0,0 @@
|
|||
import os.path
|
||||
|
||||
DEBUG = False
|
||||
SECRET_KEY = 'coin'
|
||||
|
||||
from authentic2.settings import INSTALLED_APPS, \
|
||||
MIDDLEWARE_CLASSES, AUTHENTICATION_BACKENDS
|
||||
|
||||
# Use Django default backend to pass Django tests
|
||||
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',) # + AUTHENTICATION_BACKENDS
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(os.path.dirname(__file__), 'authentic2.sqlite'),
|
||||
},
|
||||
}
|
||||
|
||||
if DEBUG:
|
||||
INSTALLED_APPS += ('debug_toolbar',)
|
||||
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
||||
|
||||
|
||||
LANGUAGE_CODE = 'en'
|
||||
|
||||
A2_IDP_SAML2_ENABLE = True
|
||||
#IDP_OPENID = True
|
||||
A2_VALIDATE_EMAIL_DOMAIN = False
|
||||
|
||||
# to pass tests from django.contrib.messages
|
||||
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
|
||||
LOGIN_REDIRECT_URL = '/accounts/profile/'
|
||||
LOGIN_URL = '/login/'
|
||||
|
||||
|
||||
MIGRATION_MODULES = {
|
||||
# these 'tests.migrations' modules don't actually exist, but this lets
|
||||
# us skip creating migrations for the test models.
|
||||
'auth': 'django.contrib.auth.tests.migrations',
|
||||
'contenttypes': 'django.contrib.contenttypes.tests.migrations',
|
||||
}
|
||||
INSTALLED_APPS += ('django.contrib.sites',)
|
||||
SITE_ID = 1
|
||||
TEMPLATE_DIRS = ('tests/templates',) + TEMPLATE_DIRS
|
||||
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
|
3
tox.ini
3
tox.ini
|
@ -9,14 +9,12 @@ envlist = django15, django16, django17
|
|||
[testenv:django15]
|
||||
commands =
|
||||
./getlasso.sh
|
||||
./authentic2-ctl --config=tests/test_settings test auth contenttypes sessions messages admin_tools theming menu dashboard
|
||||
./authentic2-ctl test authentic2
|
||||
deps = django>1.5,< 1.6
|
||||
|
||||
[testenv:django16]
|
||||
commands =
|
||||
./getlasso.sh
|
||||
./authentic2-ctl --config=tests/test_settings test django.contrib.auth django.contrib.contenttypes django.contrib.sessions django.contrib.messages admin_tools
|
||||
./authentic2-ctl test authentic2
|
||||
deps = django>1.6,<1.7
|
||||
|
||||
|
@ -24,7 +22,6 @@ deps = django>1.6,<1.7
|
|||
# django.contrib.auth is not tested it does not work with our templates
|
||||
commands =
|
||||
./getlasso.sh
|
||||
./authentic2-ctl --config=tests/test_settings test django.contrib.contenttypes django.contrib.sessions django.contrib.messages admin_tools
|
||||
./authentic2-ctl test authentic2
|
||||
deps = django>1.7,<1.8
|
||||
|
||||
|
|
Loading…
Reference in New Issue