./www/py-test-django, Django plugin for pytest

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.8.0, Package name: py37-test-django-3.8.0, Maintainer: pkgsrc-users

pytest-django allows you to test your Django project/applications with the
pytest testing tool.

Running your test suite with pytest-django allows you to tap into the features
that are already present in pytest. Here are some advantages:
* Manage test dependencies with pytest fixtures.
* Less boilerplate tests: no need to import unittest, create a subclass with
methods. Write tests as regular functions.
* Database re-use: no need to re-create the test database for every test run.
* Run tests in multiple processes for increased speed (with the pytest-xdist
plugin).
* Make use of other pytest plugins.
* Works with both worlds: Existing unittest-style TestCase's still work
without any modifications.


Required to run:
[devel/py-setuptools] [devel/py-test] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

SHA1: 229aeed544f5b079e769cad0c45b8bc9ffb895b5
RMD160: 1fec911cd1b1eb49d4a7a143c5ac60eee597ca41
Filesize: 68.372 KB

Version history: (Expand)


CVS history: (Expand)


   2020-01-14 17:05:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-django: updated to 3.8.0

3.8.0:
* Make Django's assertion helpers available in pytest_django.asserts.
* Report django-configurations setting
   2019-11-13 21:56:56 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-django: updated to 3.7.0

3.7.0:
Bugfixes
* Monkeypatch pytest to not use ``TestCase.debug`` with unittests, instead
  of patching it into Django.
* 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.  pytest-django uses a ``RuntimeError`` now instead.
   2019-11-05 08:49:37 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-django: updated to 3.6.0

3.6.0:
Features
* Rename test databases when running parallel Tox

Bugfixes
* Django unittests: restore "debug" function

Misc
* Improve/harden internal tests / infrastructure.
   2019-07-01 13:02:31 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-django: updated to 3.5.1

3.5.1:
Bugfixes
Fix compatibility with pytest 5.x
   2019-06-05 07:14:05 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-django: updated to 3.5.0

3.5.0:

Features
* Run tests in the same order as Django
* Use verbosity=0 with disabled migrations

Bugfixes
* django_db_setup: warn instead of crash with teardown errors

Misc
* tests: fix test_sqlite_database_renamed
* tests/conftest.py: move import of db_helpers
* Cleanup/improve coverage, mainly with tests
* Slightly revisit unittest handling
   2019-02-27 13:07:14 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-django: updated to 3.4.8

3.4.8:
Fix DB renaming fixture for Multi-DB environment with SQLite
   2019-02-06 09:51:48 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-django: updated to 3.4.7

3.4.7:
Bugfixes
* Fix disabling/handling of unittest methods with pytest 4.2+

3.4.6:
Bugfixes
* django_find_project: add cwd as fallback always

Misc
* Enable tests for Django 2.2 and add classifier
* Disallow pytest 4.2.0 in install_requires
   2019-01-08 10:13:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-django: updated to 3.4.5

3.4.5:

Bugfixes
* Use request.config instead of pytest.config
* :fixture:admin_user: handle "email" username_field

Misc
* Minor doc fixes
* tests: fix for pytest 4