Fix regression in v4.5.0 - pytest.mark.django_db(reset_sequence=True) now
implies transaction=True again.
v4.5.1 (2021-12-02)
Bugfixes
^^^^^^^^
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.
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 will merge this PR once CI passes on it, as requested by @nnsnodnb.
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)
Coverage remained the same at 61.458% when pulling 00aa25cb641d5e1cb83716adc56499a9adeca428 on dependabot/pip/pytest-django-4.5.2 into 3c9f8ac089361079d7a0d885c82059105a6cbc05 on master.
Bumps pytest-django from 4.4.0 to 4.5.2.
Release notes
Sourced from pytest-django's releases.
Changelog
Sourced from pytest-django's changelog.
... (truncated)
Commits
27d6560
Release 4.5.23bc9065
Makepytest.mark.django_db(reset_sequences=True)
implytransaction=True
a...b97a8b1
tox: test django 4.0 finalb3b679f
ci: remove unused dep0661d34
ci: some tweaks19f277b
ci: don't require tests before deploy8b78aca
Release 4.5.1c48b99e
Fix string quote style54f4626
Fix transactional tests in classes not sorted correctly after regular testsa920a7f
Release 4.5.0Dependabot 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 will merge this PR once CI passes on it, as requested by @nnsnodnb.
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)