Fix regression in v4.5.0 - database tests inside (non-unittest) classes were
not ordered correctly to run before non-database tests, same for transactional
tests before non-transactional tests.
v4.5.0 (2021-12-01)
Improvements
^^^^^^^^^^^^
Add support for :ref:rollback emulation/serialized rollback <test-case-serialized-rollback>. The :func:pytest.mark.django_db marker
has a new serialized_rollback option, and a
:fixture:django_db_serialized_rollback fixture is added.
Official Python 3.10 support.
Official Django 4.0 support (tested against 4.0rc1 at the time of release).
Drop official Django 3.0 support. Django 2.2 is still supported, and 3.0
will likely keep working until 2.2 is dropped, but it's not tested.
Added pyproject.toml file.
Skip Django's setUpTestData mechanism in pytest-django tests. It is not
used for those, and interferes with some planned features. Note that this
does not affect setUpTestData in unittest tests (test classes which
inherit from Django's TestCase).
Bugfixes
^^^^^^^^
Fix :fixture:live_server when using an in-memory SQLite database.
Fix typing of assertTemplateUsed and assertTemplateNotUsed.
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 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.2.0 to 4.5.1.
Release notes
Sourced from pytest-django's releases.
Changelog
Sourced from pytest-django's changelog.
... (truncated)
Commits
8b78aca
Release 4.5.1c48b99e
Fix string quote style54f4626
Fix transactional tests in classes not sorted correctly after regular testsa920a7f
Release 4.5.0a3b327d
Update AUTHORS with current status154b5f3
Skip Django'ssetUpTestData
mechanism in pytest-django testsd6ea40f
Add support for rollback emulation/serialized rollback904a995
live_server_helper: improve sqlite in-memory checkf64b252
live_server_helper: clean up on thread error774277b
live_server_helper: remove redundant join()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 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)