mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-22 14:21:52 +00:00
Added 12 tests that verify lockouts for default, AXES_ONLY_USER_FAILURES, and LOCK_OUT_BY_COMBINATION_USER_AND_IP settings, under four conditions each: same/different user, and same/different IP address. Truth Table: ¦ ¦ ¦ ¦ ¦ ¦ ¦User IP Action ¦ ¦ ¦ ¦ ¦ ¦|-------------------------------- IP Only | Same Same Block (Default) | Same Different Allow ¦ ¦ ¦ ¦ ¦ ¦| Different Same Block ¦ ¦ ¦ ¦ ¦ ¦| Different Different Allow ¦ ¦ ¦ ¦ ¦ ¦|-------------------------------- User Only | Same Same Block ¦ ¦ ¦ ¦ ¦ ¦| Same Different Block ¦ ¦ ¦ ¦ ¦ ¦| Different Same Allow ¦ ¦ ¦ ¦ ¦ ¦| Different Different Allow ¦ ¦ ¦ ¦ ¦ ¦|-------------------------------- User and IP | Same Same Block ¦ ¦ ¦ ¦ ¦ ¦| Same Different Allow ¦ ¦ ¦ ¦ ¦ ¦| Different Same Allow ¦ ¦ ¦ ¦ ¦ ¦| Different Different Allow |
||
|---|---|---|
| .. | ||
| management | ||
| migrations | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| decorators.py | ||
| models.py | ||
| settings.py | ||
| signals.py | ||
| test_settings.py | ||
| test_settings_proxy.py | ||
| test_settings_proxy_custom_header.py | ||
| test_urls.py | ||
| tests.py | ||
| utils.py | ||