Testfixtures

Latest version: v8.3.0

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

Scan your dependencies

Page 3 of 23

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.

6.18.5

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

- Fix bug in detection of Mock backport.

6.18.4

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

- Ensure compatibility with Sybil 2 and Sybil 3 along with pytest 6 and pytest 7.

6.18.3

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

- Fix bug when using :func:`compare` on two regular expressions that have very long patterns.

Thanks to Christoph Ludwig for the report.

6.18.2

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

- Fix bug that meant :class:`LogCapture` didn't preserve or provide a clean testing environment
for filters.

Thanks to Jesse Rittner for the fix.

6.18.1

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

- Fix bug when showing differences between mappings found by :func:`compare` when
mismatching values contained the same number more than once.

Page 3 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.