django-axes/axes/tests
Adam Johnson fa83253056 Don't trigger axes.W003 for subclasses of AxesBackend
The [usage documentation](https://django-axes.readthedocs.io/en/latest/3_usage.html) advises to create subclass of `AxesBackend` to ignore the lack of `request` if necessary. I've done this in a project using `django-oauth-toolkit`, which doesn't pass `request` (though it should as per [this PR](https://github.com/jazzband/django-oauth-toolkit/pull/643)).

This meant that the axes.W003 check was being triggered, so I've fixed it to check for subclasses of `AxesBackend` as well as the class itself.
2019-07-09 12:10:26 +02:00
..
__init__.py Drop Python 2.7 and Python 3.4 support 2019-02-07 17:28:26 +02:00
base.py Merge #452 into django-axes master 2019-06-14 17:08:07 +03:00
settings.py Use LocMemCache in the development setup 2019-02-26 16:49:35 +02:00
test_attempts.py Add tests for cool off thresholds 2019-03-09 21:49:45 +02:00
test_backends.py Add cache handler and refactor tests 2019-02-23 20:19:37 +02:00
test_checks.py Don't trigger axes.W003 for subclasses of AxesBackend 2019-07-09 12:10:26 +02:00
test_decorators.py Add cache handler and refactor tests 2019-02-23 20:19:37 +02:00
test_handlers.py Added AXES_ONLY_ADMIN_SITE flag. 2019-07-09 08:12:33 +02:00
test_logging.py Deprecate AXES_DISABLE_SUCCESS_ACCESS_LOG flag 2019-05-25 20:45:21 +03:00
test_login.py Add tests for django.contrib.auth login and logout 2019-05-08 13:57:42 +03:00
test_management.py Add cache handler and refactor tests 2019-02-23 20:19:37 +02:00
test_middleware.py Improve lockout and request handling 2019-05-19 18:32:40 +03:00
test_models.py Add cache handler and refactor tests 2019-02-23 20:19:37 +02:00
test_signals.py Add cache handler and refactor tests 2019-02-23 20:19:37 +02:00
test_utils.py Add tests for AXES_ENABLED flag 2019-05-19 18:32:40 +03:00
urls.py Use pytest for test runner 2019-02-20 23:05:21 +02:00