Pytest-django

Latest version: v4.9.0

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 10

2.9.1

------

Bug fixes
^^^^^^^^^

* Fix regression introduced in 2.9.0 that caused TestCase subclasses with
mixins to cause errors. Thanks MikeVL for `the bug report
<https://github.com/pytest-dev/pytest-django/issues/280>`__.

2.9.0

and Python 3.5

Features
^^^^^^^^
* ``--fail-on-template-vars`` - fail tests for invalid variables in templates.
Thanks to Johannes Hoppe for idea and implementation. Thanks Daniel Hahler
for review and feedback.

Bug fixes
^^^^^^^^^
* Ensure urlconf is properly reset when using pytest.mark.urls. Thanks to
Sarah Bird, David Szotten, Daniel Hahler and Yannick PÉROUX for patch and
discussions. Fixes `issue 183
<https://github.com/pytest-dev/pytest-django/issues/183>`__.

* Call ``setUpClass()`` in Django ``TestCase`` properly when test class is
inherited multiple places. Thanks to Benedikt Forchhammer for report and
initial test case. Fixes `issue 265
<https://github.com/pytest-dev/pytest-django/issues/265>`__.

Compatibility
^^^^^^^^^^^^^

* Settings defined in ``pytest.ini``/``tox.ini``/``setup.cfg`` used to override
``DJANGO_SETTINGS_MODULE`` defined in the environment. Previously the order was
undocumented. Now, instead the settings from the environment will be used
instead. If you previously relied on overriding the environment variable,
you can instead specify ``addopts = --ds=yourtestsettings`` in the ini-file
which will use the test settings. See `PR 199
<https://github.com/pytest-dev/pytest-django/pull/199>`__.

* Support for Django 1.9.

* Support for Django master (to be 1.10) as of 2015-10-06.

* Drop support for Django 1.3. While pytest-django supports a wide range of
Django versions, extended for Django 1.3 was dropped in february 2013.

2.8.0

------

Features
^^^^^^^^

* pytest's verbosity is being used for Django's code to setup/teardown the test
database (172).

* Added a new option `--nomigrations` to avoid running Django 1.7+ migrations
when constructing the test database. Huge thanks to Renan Ivo for complete
patch, tests and documentation.

Bug fixes
^^^^^^^^^

* Fixed compatibility issues related to Django 1.8's
`setUpClass`/`setUpTestData`. Django 1.8 is now a fully supported version.
Django master as of 2014-01-18 (the Django 1.9 branch) is also supported.

2.7.0

------

Features
^^^^^^^^

* New fixtures: ``admin_user``, ``django_user_model`` and
``django_username_field`` (109).

* Automatic discovery of Django projects to make it easier for new users. This
change is slightly backward incompatible, if you encounter problems with it,
the old behaviour can be restored by adding this to ``pytest.ini``,
``setup.cfg`` or ``tox.ini``:

.. code-block:: ini

[pytest]
django_find_project = false

Please see the :ref:`managing_python_path` section for more information.

Bugfixes
^^^^^^^^

* Fix interaction between ``db`` and ``transaction_db`` fixtures (126).

* Fix admin client with custom user models (124). Big thanks to Benjamin
Hedrich and Dmitry Dygalo for patch and tests.

* Fix usage of South migrations, which were unconditionally disabled previously
(22).

* Fixed 119, 134: Call ``django.setup()`` in Django >=1.7 directly after
settings is loaded to ensure proper loading of Django applications. Thanks to
Ionel Cristian Mărieș, Daniel Hahler, Tymur Maryokhin, Kirill SIbirev, Paul
Collins, Aymeric Augustin, Jannis Leidel, Baptiste Mispelon and Anatoly
Bubenkoff for report, discussion and feedback.

* `The `live_server`` fixture can now serve static files also for Django>=1.7
if the ``django.contrib.staticfiles`` app is installed. (140).

* ``DJANGO_LIVE_TEST_SERVER_ADDRESS`` environment variable is read instead
of ``DJANGO_TEST_LIVE_SERVER_ADDRESS``. (140)

2.6.2

------

* Fixed a bug that caused doctests to runs. Thanks to jjmurre for the patch

* Fixed issue 88 - make sure to use SQLite in memory database when running
with pytest-xdist.

2.6.1

------
This is a bugfix/support release with no new features:

* Added support for Django 1.7 beta and Django master as of 2014-04-16.
pytest-django is now automatically tested against the latest git master
version of Django.

* Support for MySQL with MyISAM tables. Thanks to Zach Kanzler and Julen Ruiz
Aizpuru for fixing this. This fixes issue 8 64.

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.