- Update to 4.11.1:
* Compatibility
+ Added official support for Django 5.2.
+ Added official support for Python 3.13.
+ Added official support for Django 5.1.
+ Dropped support for Django 3.2 and 4.1.
+ Official Django 5.0 support.
+ Official Python 3.12 support.
+ Drop support for Python version 3.5, 3.6 & 3.7.
+ Drop official support for Django 4.0 and 2.2
+ Drop support for pytest < 7.
* Improvements
+ Added using argument to django_assert_num_queries and
django_assert_max_num_queries to easily specify the database alias to
use.
+ Respect the string_if_invalid template setting when
--fail-on-template-vars is active and
pytest.mark.ignore_template_errors is used.
+ Avoid running database migrations for django.test.SimpleTestCase
unittest tests.
+ Added pytest_django.asserts.assertMessages() to mimic the behaviour of
the django.contrib.messages.test.MessagesTestMixin.assertMessages method
for Django versions >= 5.0.
+ The Django test tags from the previous release now works on any
django.test.SimpleTestCase.
+ Add support for setting available_apps in the pytest.mark.django_db
marker.
+ Show Django's version in the pytest django report header.
+ Add precise pytest_django.asserts.assertQuerySetEqual typing.
* Bugfixes
OBS-URL: https://build.opensuse.org/request/show/1276724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=20
* Compatibility
+ Added official support for Django 5.2.
+ Added official support for Python 3.13.
+ Added official support for Django 5.1.
+ Dropped support for Django 3.2 and 4.1.
+ Official Django 5.0 support.
+ Official Python 3.12 support.
+ Drop support for Python version 3.5, 3.6 & 3.7.
+ Drop official support for Django 4.0 and 2.2
+ Drop support for pytest < 7.
* Improvements
+ Added using argument to django_assert_num_queries and
django_assert_max_num_queries to easily specify the database alias to
use.
+ Respect the string_if_invalid template setting when
--fail-on-template-vars is active and
pytest.mark.ignore_template_errors is used.
+ Avoid running database migrations for django.test.SimpleTestCase
unittest tests.
+ Added pytest_django.asserts.assertMessages() to mimic the behaviour of
the django.contrib.messages.test.MessagesTestMixin.assertMessages method
for Django versions >= 5.0.
+ The Django test tags from the previous release now works on any
django.test.SimpleTestCase.
+ Add support for setting available_apps in the pytest.mark.django_db
marker.
+ Show Django's version in the pytest django report header.
+ Add precise pytest_django.asserts.assertQuerySetEqual typing.
* Bugfixes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=37
- Update to 4.5.2
* Bugfixes
* Fix regression in v4.5.0 -
pytest.mark.django_db(reset_sequence=True) now implies
transaction=True again.
- Release v4.5.1
* 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.
- Release v4.5.0
* 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).
OBS-URL: https://build.opensuse.org/request/show/942800
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=29
- Update to 3.4.8:
* Various test fixes only
- Add docs/ and AUTHORS to %doc
- Update to v3.4.7
* Fix disabling/handling of unittest methods with pytest 4.2+
- from 3.4.6
* django_find_project: add cwd as fallback always
* Enable tests for Django 2.2 and add classifier
- from 3.4.5
* Use request.config instead of pytest.config
* fixture 'admin_user' handle "email" username_field
* Minor doc fixes
- Add 'six' as explicit build dependency
OBS-URL: https://build.opensuse.org/request/show/679814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=4