Commit graph

16 commits

Author SHA1 Message Date
kuldeepkhatke
baace5c27b Added separate UT for complete, partial & no delete senarios 2025-07-05 16:19:19 +03:00
kuldeepkhatke
94a66c7346 Added actual queryset call UT 2025-07-05 16:19:19 +03:00
kuldeepkhatke
74c24c0e78 Added unittest for AXES_USE_ATTEMPT_EXPIRATION flag 2025-07-05 16:19:19 +03:00
Aleksi Häkli
3804e834a8 Drop PyPy support
Tests are failing and need updates to fully support PyPy 3.10.
If anyone needs PyPy support please feel free to fix the tox matrix
and open a PR that reintroduces PyPy support for the project.
2024-09-21 13:02:49 +03:00
Maksim Zayakin
58d5b491d8 test: add deprecation check for is_admin_site, add is_admin_request tests 2023-05-14 23:01:58 +03:00
Maksim Zayakin
73c4e4501b chore: adjust types: use list instead of iterables and nested lists instead of tuples 2023-05-13 14:04:14 +03:00
Maksim Zayakin
7cb0144770 test: use AXES_LOCKOUT_PARAMETERS in handlers test 2023-05-13 14:04:14 +03:00
Aleksi Häkli
c3cfb5150a Refactor cache backend to use cache.incr method for request tracking
The old cache.set method has problems with correctness as well as
performance on higher traffic sites where there are
multiple parallel web servers running at the same time
which can overwrite each others shared cache
2023-05-01 21:27:47 +03:00
Gregory DAVID
246d884b84 Tests for AccessFailureLog 2022-04-08 22:16:19 +03:00
Asher Foa
13848bdb5f Fix typo in tests 2021-10-21 11:07:56 +03:30
sarahboyce
403076ef51 feat(helpers): update get_client_str to accept request object
Use case: include more info about the user in the client_str.
username is already included in the arguments but that would require a separate DB call.
https://github.com/jazzband/django-axes/issues/782
2021-09-02 17:40:05 +03:00
Aleksi Häkli
ac86d4b213 Adjust commentation and log messages 2021-06-29 17:50:37 +03:00
Aleksi Häkli
69af352d6e Mark flaky tests on database handler tests on PyPy runtime
The database handler tests fail from time to time due to slow PyPy startup time
which results in tests failing unexpectedly which only happens on PyPy.

This PR requires CPython runtime to pass the tests and indicates failures,
but does not fail the test suite due to them.
2021-03-01 13:49:53 +02:00
Nat Gordon
d4e97123f2 Add support to reset attempts on the cache handler 2021-02-15 20:20:49 +02:00
Aleksi Häkli
b6b26e492f Optimize imports as part of cleanup round 2021-01-07 18:23:33 +02:00
Aleksi Häkli
a5045f62fe Move tests outside project source folder 2021-01-07 18:23:33 +02:00
Renamed from axes/tests/test_handlers.py (Browse further)