mirror of https://github.com/snachodog/mybuddy.git
Disable axes during tests
This commit is contained in:
parent
27ea845bbb
commit
97b17447df
|
@ -0,0 +1,16 @@
|
||||||
|
from .base import *
|
||||||
|
|
||||||
|
SECRET_KEY = 'TESTS'
|
||||||
|
|
||||||
|
# Password hasher configuration
|
||||||
|
# See https://docs.djangoproject.com/en/3.2/ref/settings/#password-hashers
|
||||||
|
# See https://docs.djangoproject.com/en/3.2/topics/testing/overview/#password-hashing
|
||||||
|
|
||||||
|
PASSWORD_HASHERS = [
|
||||||
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||||
|
]
|
||||||
|
|
||||||
|
# Axes configuration
|
||||||
|
# See https://django-axes.readthedocs.io/en/latest/4_configuration.html
|
||||||
|
|
||||||
|
AXES_ENABLED = False
|
|
@ -200,6 +200,7 @@ function test(cb) {
|
||||||
'python',
|
'python',
|
||||||
'manage.py',
|
'manage.py',
|
||||||
'test',
|
'test',
|
||||||
|
'--settings=babybuddy.settings.test',
|
||||||
'--parallel',
|
'--parallel',
|
||||||
'--exclude-tag',
|
'--exclude-tag',
|
||||||
'isolate'
|
'isolate'
|
||||||
|
|
Loading…
Reference in New Issue