summaryrefslogtreecommitdiff
path: root/bps/error/__init__.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-10-07 21:33:47 -0400
committerEli Collins <elic@assurancetechnologies.com>2020-10-07 21:33:47 -0400
commita4f23dd8fed25cefc93cb257e00b16502a87dbd4 (patch)
tree08cb5765baddc3c3432f956f8ba549ba6fe21077 /bps/error/__init__.py
parent479d593f8b05f31b59b1448509879d6977d5d580 (diff)
downloadpasslib-a4f23dd8fed25cefc93cb257e00b16502a87dbd4.tar.gz
passlib.ext.django: Updated UTs to work with latest django release
(should fix long-standing issue 98) * test_ext_django: - Simplified "stock config" setup code. It now gets it's "sha_rounds" value from the django source, so we don't have to manually update it every time django changes their default. This should require less maintenance across minor django releases. (Should fix issue 98, and prevent recurrence) - Updated tests to account for quirks in how encoded hashes are handled. Specifically: None, "", and invalid hashes all cause subtly different behaviors across django versions. tests pass against django 1.8 - 3.1. - split "empty hash" test out from the loop it shared with "null hash" test, since the two behave differently. * tox: expanded envlist to explicitly test a bunch more django versions (1.8 - 3.1); and remove some needless "django 2.x + py2" tests * passlib.apps: reformatted django CryptContext declarations; added one for django 2.1 (which dropped "django_bcrypt" it's default list) * passlib.ext.django: - added internal "quirks" helper as central place to track minor edge-case changes between django versions. - passlib_to_django() helper now falls back to searching hasher classes directly, even if patch isn't installed. this allows it to work for django hashers that have been removed from django's default list.
Diffstat (limited to 'bps/error/__init__.py')
0 files changed, 0 insertions, 0 deletions