From 97b17447df07d5ce849b696b19bde59a00d52252 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Mon, 21 Jun 2021 20:47:57 -0700 Subject: [PATCH] Disable axes during tests --- babybuddy/settings/test.py | 16 ++++++++++++++++ gulpfile.js | 1 + 2 files changed, 17 insertions(+) create mode 100644 babybuddy/settings/test.py diff --git a/babybuddy/settings/test.py b/babybuddy/settings/test.py new file mode 100644 index 00000000..6f404180 --- /dev/null +++ b/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 diff --git a/gulpfile.js b/gulpfile.js index 3d5944b7..65d9f34e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -200,6 +200,7 @@ function test(cb) { 'python', 'manage.py', 'test', + '--settings=babybuddy.settings.test', '--parallel', '--exclude-tag', 'isolate'