17
0

42 Commits

Author SHA256 Message Date
9ea4e8620f Accepting request 1296031 from devel:languages:python:django
- Add patch fix-use-of-mail-outbox.patch:
  * Fix use of django.mail.outbox with Django 5.2.

OBS-URL: https://build.opensuse.org/request/show/1296031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=21
2025-07-30 09:41:02 +00:00
606e730ded - Add patch fix-use-of-mail-outbox.patch:
* Fix use of django.mail.outbox with Django 5.2.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=39
2025-07-28 06:06:28 +00:00
ceaf0ceb5e Accepting request 1276724 from devel:languages:python:django
- 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
2025-05-13 18:12:07 +00:00
afacb5caac - 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/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=37
2025-05-12 06:50:08 +00:00
578a6dd074 Accepting request 1095248 from devel:languages:python:django
Forwarded request #1095195 from gladiac

- Use sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1095248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=19
2023-06-26 16:15:34 +00:00
73426a48aa Accepting request 1095195 from devel:languages:python:mailman:backports
- Use sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1095195
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=35
2023-06-25 19:19:11 +00:00
1fa465a8c4 Accepting request 1041387 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/1041387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=18
2022-12-09 12:16:40 +00:00
John Vandenberg
a5ce8a77a8 Accepting request 1041365 from home:pgajdos:python
- six is not required for build

OBS-URL: https://build.opensuse.org/request/show/1041365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=33
2022-12-08 12:08:45 +00:00
a61fbc70da Accepting request 965764 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/965764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=17
2022-04-23 17:45:14 +00:00
f7d744d160 Accepting request 965500 from home:bnavigator:branches:devel:languages:python:django
- Add pytest-django-pr996-pytest7.patch
  * gh#pytest-dev/pytest-django#996

OBS-URL: https://build.opensuse.org/request/show/965500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=31
2022-03-29 19:46:20 +00:00
ea09611744 Accepting request 956875 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/956875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=16
2022-02-23 15:25:59 +00:00
bdc6de9838 Accepting request 956874 from home:mcepl:branches:devel:languages:python
- Add autoclear_mailbox.patch checking for the existence of the
  mail.outbox before clearing it (gh#pytest-dev/pytest-django#993).

OBS-URL: https://build.opensuse.org/request/show/956874
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=30
2022-02-22 21:28:13 +00:00
63013c8459 Accepting request 942815 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/942815
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=15
2022-01-05 14:44:26 +00:00
6b305fbeac Accepting request 942800 from home:bnavigator:py310
- 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
2021-12-27 16:49:28 +00:00
c82f508910 Accepting request 844823 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/844823
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=14
2020-11-02 08:38:59 +00:00
37d5914919 Accepting request 844695 from home:jayvdb:pytest
- Disable Python 2
- Drop no longer needed patches:
  * ignore-warnings.patch
  * pytest-django-pytest6.patch 
- Update to v4.1.0

OBS-URL: https://build.opensuse.org/request/show/844695
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=27
2020-10-29 09:41:58 +00:00
62a85bfb09 Accepting request 831465 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/831465
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=13
2020-09-04 09:03:46 +00:00
Tomáš Chvátal
9f98f7662d Accepting request 831464 from home:bnavigator:pytest6
- Fix test failure with pytest 6
  * pytest-django-pytest6.patch
  * The patched call signature looks weird, but it works as intended
  * Patch is part of gh#pytest-dev/pytest-django#855
- Replace deprecated py.test call with %pytest macro

OBS-URL: https://build.opensuse.org/request/show/831464
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=25
2020-09-02 13:27:37 +00:00
Tomáš Chvátal
59df73836b Accepting request 828921 from home:mcalabkova:branches:devel:languages:python:django
- Fix build with ignore-warnings.patch

OBS-URL: https://build.opensuse.org/request/show/828921
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=24
2020-08-24 16:32:00 +00:00
1cba066934 Accepting request 791158 from devel:languages:python:django
- Update to 3.9.0:
  * Improve test ordering with Django test classes (#830)
  * Remove import of pkg_resources for parsing pytest version (performance) (#826)
  * Work around unittest issue with pytest 5.4.{0,1} (#825)
  * Don't break --failed-first when re-ordering tests (#819, #820)
  * pytest_addoption: use group.addoption (#833)

OBS-URL: https://build.opensuse.org/request/show/791158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=12
2020-04-05 18:52:42 +00:00
Tomáš Chvátal
66b573fd32 - Update to 3.9.0:
* Improve test ordering with Django test classes (#830)
  * Remove import of pkg_resources for parsing pytest version (performance) (#826)
  * Work around unittest issue with pytest 5.4.{0,1} (#825)
  * Don't break --failed-first when re-ordering tests (#819, #820)
  * pytest_addoption: use group.addoption (#833)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=22
2020-04-03 10:24:31 +00:00
599acd2b8d Accepting request 784632 from devel:languages:python:django
- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/784632
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=11
2020-03-26 23:22:46 +00:00
Tomáš Chvátal
28abefb8e8 - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=20
2020-03-13 12:44:51 +00:00
1bcaa86d06 Accepting request 766504 from devel:languages:python:django
- Update 3.8.0:
  * Make Django's assertion helpers available in pytest_django.asserts (#709).
  * Report django-configurations setting (#791)

OBS-URL: https://build.opensuse.org/request/show/766504
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=10
2020-01-26 23:20:23 +00:00
Tomáš Chvátal
a41ba4343f - Update 3.8.0:
* Make Django's assertion helpers available in pytest_django.asserts (#709).
  * Report django-configurations setting (#791)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=18
2020-01-23 08:52:19 +00:00
7d2b038a30 Accepting request 750272 from devel:languages:python:django
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/750272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=9
2019-11-25 10:23:45 +00:00
Tomáš Chvátal
7e0f157ad4 - Update to 3.7.0:
* Monkeypatch pytest to not use ``TestCase.debug`` with unittests, instead
    of patching it into Django (#782).
  * Work around pytest crashing due to ``pytest.fail`` being used from within the
    DB blocker, and pytest trying to display an object representation involving
    DB access (#781).  pytest-django uses a ``RuntimeError`` now instead.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=16
2019-11-15 10:52:28 +00:00
f8eb3acb0a Accepting request 744143 from devel:languages:python:django
- Update to 3.6.0:
  * Rename test databases when running parallel Tox (#678, #680)
  * Django unittests: restore "debug" function (#769, #771)

OBS-URL: https://build.opensuse.org/request/show/744143
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=8
2019-11-03 10:39:21 +00:00
Tomáš Chvátal
6e26d38de5 - Update to 3.6.0:
* Rename test databases when running parallel Tox (#678, #680)
  * Django unittests: restore "debug" function (#769, #771)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=14
2019-10-30 11:58:45 +00:00
92b2827f1b Accepting request 725344 from devel:languages:python:django
- Simplify the deps

OBS-URL: https://build.opensuse.org/request/show/725344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=7
2019-08-23 09:07:57 +00:00
Tomáš Chvátal
f13e329396 - Simplify the deps
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=12
2019-08-22 14:23:21 +00:00
Tomáš Chvátal
f66eeee3fa - Siplify the deps
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=11
2019-08-22 13:40:57 +00:00
4657804508 Accepting request 713051 from devel:languages:python:django
- Update to 3.5.1:
  * Fix compatibility with pytest 5.x (#751)

OBS-URL: https://build.opensuse.org/request/show/713051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=6
2019-07-03 13:14:56 +00:00
Tomáš Chvátal
363d1471af - Update to 3.5.1:
* Fix compatibility with pytest 5.x (#751)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=9
2019-07-02 12:12:53 +00:00
208f46c3a3 Accepting request 710346 from devel:languages:python:django
- Update to 3.5.0:
  * Run tests in the same order as Django (#223)
  * Use verbosity=0 with disabled migrations (#729, #730)
  * django_db_setup: warn instead of crash with teardown errors (#726)
  * tests: fix test_sqlite_database_renamed (#739, #741)
  * tests/conftest.py: move import of db_helpers (#737)
  * Cleanup/improve coverage, mainly with tests (#706)
  * Slightly revisit unittest handling (#740)

OBS-URL: https://build.opensuse.org/request/show/710346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=5
2019-06-17 19:34:46 +00:00
Tomáš Chvátal
7140455e60 - Update to 3.5.0:
* Run tests in the same order as Django (#223)
  * Use verbosity=0 with disabled migrations (#729, #730)
  * django_db_setup: warn instead of crash with teardown errors (#726)
  * tests: fix test_sqlite_database_renamed (#739, #741)
  * tests/conftest.py: move import of db_helpers (#737)
  * Cleanup/improve coverage, mainly with tests (#706)
  * Slightly revisit unittest handling (#740)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=7
2019-06-17 12:14:19 +00:00
cfe3632083 Accepting request 679814 from devel:languages:python:django
- 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
2019-03-01 15:47:02 +00:00
Tomáš Chvátal
67384b2884 - Update to 3.4.8:
* Various test fixes only

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=5
2019-02-27 13:33:53 +00:00
Tomáš Chvátal
2ae8d2df13 Accepting request 678514 from home:jayvdb:django
- 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/678514
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-pytest-django?expand=0&rev=4
2019-02-25 08:51:23 +00:00
e0fa28bcbe Accepting request 656867 from devel:languages:python:django
- Version update to 3.4.4:
  * Many many changes to list properly
- Drop obsolete patch python-pytest-django-dependency.patch

OBS-URL: https://build.opensuse.org/request/show/656867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=3
2018-12-13 18:48:20 +00:00
f3b87445eb Accepting request 535252 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/535252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=2
2017-10-20 12:47:07 +00:00
0b6537d19c Accepting request 533036 from devel:languages:python
Required by python-django-nose

See request 531880 : https://build.opensuse.org/request/show/531880

OBS-URL: https://build.opensuse.org/request/show/533036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=1
2017-10-18 08:50:34 +00:00