Added pytest_django.asserts.assertMessages() to mimic the behaviour of the
:meth:~django.contrib.messages.test.MessagesTestMixin.assertMessages method
for Django versions >= 5.0.
Bugfixes
^^^^^^^^
Fix --help/--version crash in a partially configured app.
v4.7.0 (2023-11-08)
Compatibility
^^^^^^^^^^^^^
Official Django 5.0 support.
Official Python 3.12 support.
Improvements
^^^^^^^^^^^^
The Django test tags from the previous release now works on any
:class:~django.test.SimpleTestCase (i.e. any Django test framework test
class), not just :class:~django.test.TransactionTestCase classes.
Some improvements for those of us who like to type their tests:
Add pytest_django.DjangoAssertNumQueries for typing
:fixture:django_assert_num_queries and
:fixture:django_assert_max_num_queries.
Add pytest_django.DjangoCaptureOnCommitCallbacks for typing
:fixture:django_capture_on_commit_callbacks.
Add pytest_django.DjangoDbBlocker for typing
:fixture:django_db_blocker.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pytest-django from 4.5.2 to 4.8.0.
Release notes
Sourced from pytest-django's releases.
Changelog
Sourced from pytest-django's changelog.
... (truncated)
Commits
49b98d1
Release 4.8.07c04917
django_username_field example should use create_user not create0b42a93
Added assertMessages() from django.contrib.messages. (#1109)5283aa4
Fix--help
/--version
crash in a partially configured appd0d22ba
Remove redundant_setup_django
call indjango_test_environment
6cf63b6
Upgrade GitHub Action setup-python (#1103)523c8d5
Remove MANIFEST.in file72080ad
tests: make it possible to run without settingPYTHONPATH=$(pwd)
b17b7bc
tests: make variable faithful to its name12cf877
Avoid mutable global state inSettingsWrapper
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show