django-rest-framework/tests/authentication
Mahdi Rahimi 97a771c405
Refactor token generation to use secrets module (#9760)
* Refactor token generation to use secrets module

* test: Add focused tests for Token.generate_key() method

- Add test for valid token format (40 hex characters)
- Add collision resistance test with 500 sample size
- Add basic randomness quality validation
- Ensure generated keys are unique and properly formatted
2025-08-10 09:42:52 +06:00
..
migrations Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
__init__.py Add migration for CustomToken test model. 2019-02-14 15:57:20 +01:00
models.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_authentication.py Refactor token generation to use secrets module (#9760) 2025-08-10 09:42:52 +06:00