summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-11-22 23:18:24 -0500
committerEli Collins <elic@assurancetechnologies.com>2016-11-22 23:18:24 -0500
commitbc6fbb47dddc994d1f6f835e6c9f62bc06f08775 (patch)
tree0b99395005e270e96ca29ad8a550c4ec536c1d7e
parent75e20796e380a3fc5ebd3f1e2d20e4f1e7d26a71 (diff)
downloadpasslib-bc6fbb47dddc994d1f6f835e6c9f62bc06f08775.tar.gz
bugfix: tests.test_ext_django: handle no argon2 backends available
-rw-r--r--passlib/tests/test_ext_django.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/passlib/tests/test_ext_django.py b/passlib/tests/test_ext_django.py
index e8ae175..79d19df 100644
--- a/passlib/tests/test_ext_django.py
+++ b/passlib/tests/test_ext_django.py
@@ -503,7 +503,8 @@ class DjangoBehaviorTest(_ExtensionTest):
if not registry.has_backend(handler):
# TODO: move this above get_handler_case(),
# and omit MissingBackendError check.
- assert scheme in ["django_bcrypt", "django_bcrypt_sha256"], "%r scheme should always have active backend" % scheme
+ assert scheme in ["django_bcrypt", "django_bcrypt_sha256", "django_argon2"], \
+ "%r scheme should always have active backend" % scheme
continue
try:
secret, hash = sample_hashes[scheme]