Skip to content

Commit

Permalink
Disable axes during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Jun 22, 2021
1 parent 27ea845 commit 97b1744
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions babybuddy/settings/test.py
@@ -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
1 change: 1 addition & 0 deletions gulpfile.js
Expand Up @@ -200,6 +200,7 @@ function test(cb) {
'python',
'manage.py',
'test',
'--settings=babybuddy.settings.test',
'--parallel',
'--exclude-tag',
'isolate'
Expand Down

0 comments on commit 97b1744

Please sign in to comment.