Testfixtures

Latest version: v8.2.0

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

Scan your dependencies

Page 2 of 23

7.1.0

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

- Implement new IDE and static-analysis ways of :doc:`mocking <mocking>` including additional
parameters to :meth:`~Replacer.replace` along with the :any:`replace_on_class`,
:any:`replace_in_module` and :any:`replace_in_environ` context managers.

7.0.4

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

- Remove `py.typed` file: neither `mypy` nor `testfixtures` are ready for
this file to be present.

7.0.3

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

- Further bugfixes around self-referential datastructures and :func:`compare`.

7.0.2

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

- Reinstate support for self-referential data structures in :func:`compare`.
The new implementation provides more clarity about what's going on and also ignores more
immutable data types.

7.0.1

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

- Remove non-functional support for self-referential data structures in :func:`compare`.
The functionality didn't work but did cause erroneous reported equality of values in dictionaries
that were actually not equal.

7.0.0

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

- Refresh documentation.

- Add type annotations.

- Drop support for Python 2. The minimum supported Python version is now 3.6.

- Sybil 3 is now the minimum supported version if you use :class:`~.sybil.FileParser`.

- Rename and refactor the date and time mocks, they are now :any:`mock_date`, :any:`mock_datetime`
and :any:`mock_time`.
:any:`test_date<mock_date>`, :any:`test_datetime <mock_datetime>` and :any:`test_time <mock_time>` are still present as aliases but
are now deprecated.

- Add :meth:`TempDirectory.as_string`, :meth:`TempDirectory.as_path` and
``TempDirectory.as_local``. :meth:`TempDirectory.getpath` is now deprecated.

- :class:`TempDirectory` can now be used to wrap existing directories.

- Fixed a bug where :any:`OutputCapture.captured` returned bytes instead of a string with
``fd=True``.

- The deprecated ``strict`` option to :class:`Comparison` has been removed, use the ``partial``
option instead.

- The deprecated ``TempDirectory.check``, ``TempDirectory.check_dir``
and ``TempDirectory.check_all`` methods have been removed.

Page 2 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.