Testfixtures

Latest version: v8.2.0

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

Scan your dependencies

Page 14 of 23

4.9.0

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

- Added the `suffix` parameter to :func:`compare` to allow failure messages
to include some additional context.

- Update package metadata to indicate Python 3.5 compatibility.

Thanks for Felix Yan for the metadata patch.

Thanks to Wim Glenn for the suffix patch.

4.8.0

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

- Introduce a new :class:`Replace` context manager and make :class:`Replacer`
callable. This gives more succinct and easy to read mocking code.

- Add :class:`ShouldWarn` and :class:`ShouldNotWarn` context managers.

4.7.0

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

- Add the ability to pass ``raises=False`` to :func:`compare` to just get
the resulting message back rather than having an exception raised.

4.6.0

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

- Fix a bug that mean symlinked directories would never show up when using
:meth:`TempDirectory.compare` and friends.

- Add the ``followlinks`` parameter to :meth:`TempDirectory.compare` to
indicate that symlinked or hard linked directories should be recursed into
when using ``recursive=True``.

4.5.1

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

- Switch from ``cStringIO`` to ``StringIO`` in :class:`OutputCapture`
to better handle unicode being written to `stdout` or `stderr`.

Thanks to "tell-k" for the patch.

4.5.0

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

- :class:`LogCapture`, :class:`OutputCapture` and :class:`TempDirectory` now
explicitly show what is expected versus actual when reporting differences.

Thanks to Daniel Fortunov for the pull request.

Page 14 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.