summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_decorators.py
AgeCommit message (Collapse)Author
2026-01-31Refs #34118 -- Removed asgiref coroutine detection shims.Jacob Walls
As Python 3.12 is now the floor, we can drop the shims and use the `inspect` module.
2024-10-17Refs #35844 -- Used asgiref.sync.iscoroutinefunction() instead of deprecated ↵Mariusz Felisiak
asyncio.iscoroutinefunction(). Fixes DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead.
2024-10-07Fixed #35303 -- Implemented async auth backends and utils.Jon Janzen
2024-05-22Fixed #31405 -- Added LoginRequiredMiddleware.Hisham Mahmood
Co-authored-by: Adam Johnson <me@adamj.eu> Co-authored-by: Mehmet İnce <mehmet@mehmetince.net> Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-03-07Fixed #35030 -- Made django.contrib.auth decorators to work with async ↵Dingning
functions.
2024-03-06Refs #35030 -- Added more tests for @user_passes_test decorator.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2019-04-14Renamed camelCaseTestMethods to snake_case_test_methodsMarkus Holtermann
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-04Fixed #26089 -- Removed custom user test models from public API.Simon Charette
Thanks to Tim Graham for the review.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-06-08Fixed #24929 -- Allowed permission_required decorator to take any iterableRaphael Michel
2015-02-11Moved contrib.auth tests out of contrib.Tim Graham