Testfixtures

Latest version: v8.3.0

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

Scan your dependencies

Page 11 of 23

5.2.0

------------------------

- :any:`test_datetime <mock_datetime>` and :class:`test_time <mock_time>` now accept a
:class:`~datetime.datetime` instance during instantiation to set the initial
value.

- :class:`test_date <mock_date>` now accepts a :class:`~datetime.date` instance during
instantiation to set the initial value.

- Relax the restriction on adding, setting or instantiating :any:`test_datetime <mock_datetime>`
with `tzinfo` such that if the `tzinfo` matches the one configured,
then it's okay to add.
This means that you can now instantiate a :any:`test_datetime <mock_datetime>` with an existing
:class:`~datetime.datetime` instance that has `tzinfo` set.

- :func:`testfixtures.django.compare_model` now ignores
:class:`many to many <django.db.models.ManyToManyField>` fields rather than
blowing up on them.

- Drop official support for Python 3.4, although things should continue to
work.

5.1.1

-------------------

- Fix support for Django 1.9 in
:func:`testfixtures.django.compare_model`.

5.1.0

-------------------

- Added support for including non-edit able fields to the
:func:`comparer <testfixtures.django.compare_model>` used by :func:`compare`
when comparing :doc:`django <django>`
:class:`~django.db.models.Model` instances.

5.0.0

-------------------

- Move from `nose`__ to `pytest`__ for running tests.

__ http://nose.readthedocs.io/en/latest/

__ https://docs.pytest.org/en/latest/

- Switch from `manuel`__ to `sybil`__ for checking examples in
documentation. This introduces a backwards incompatible change
in that :class:`~testfixtures.sybil.FileParser` replaces the Manuel
plugin that is no longer included.

__ http://packages.python.org/manuel/

__ http://sybil.readthedocs.io/en/latest/

- Add a 'tick' method to :meth:`test_datetime <testfixtures.datetime.MockDateTime.tick>`,
:meth:`test_date <testfixtures.datetime.MockDate.tick>` and
:meth:`test_time <testfixtures.datetime.MockTime.tick>`,
to advance the returned point in time, which is particularly helpful
when ``delta`` is set to zero.

4.14.3

--------------------

- Fix build environment bug in ``.travis.yml`` that caused bad tarballs.

4.14.2

--------------------

- New release as it looks like Travis mis-built the 4.14.1 tarball.

Page 11 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.