All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Resolve incorrect typing for
ReturnsStatus
(andReturnsNNN
family) — see GH#12, thanks @last-partizan
- Remove support for Python 3.6
- Add support for Python 3.9, 3.10, and 3.11
- Add support for py.test 3.6 through 7.1
- Resolve
typing.Protocol
ImportError
on Python version 3.6 and 3.7
- Resolve error when running
py.test --fixtures
- Exposed
url_for
, a compact wrapper around Django'sreverse()
to generate URLs succinctly - Add docs/tutorial to README
- Prefix all test methods with
test_
, so they work with standard pytest configuration (previously, tests were prefixed withit_
, which requiredpython_functions
to includeit_*
inpytest.ini
)
- Switched to pytest-djangoapp (from pytest-django) for testing
- Relaxed version pin on
pytest-assert-utils
- Included LICENSE, CHANGELOG, and tests in source distribution
- Introducing
pluralized
to ease use of expression methods - Added tests
ForbidsAnonymousUsers
now expects a 403 status code, matching DRF's default permissions behaviour
- Resolved incorrect MRO when declaring
UsesXYZMethod
base classes afterAPIViewTest
- Properly handle
headers
kwarg in API test client - Prevent unintended Django settings accesses before pytest-django can set
DJANGO_SETTINGS_MODULE
- Introducing
APIViewTest
andViewSetTest
for quick scaffolding of DRF API tests