Testfixtures

Latest version: v8.2.0

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

Scan your dependencies

Page 9 of 23

6.4.1

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

- Fix bug when using :func:`unittest.mock.patch` and any of the testfixtures decorators
at the same time and where the object being patched in was not hashable.

6.4.0

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

- Add official support for Python 3.7.

- Drop official support for Python 3.5.

- Introduce a facade for :mod:`unittest.mock` at :mod:`testfixtures.mock`, including an
important bug fix for :func:`~unittest.mock.call` objects.

- Better feedback when :func:`~unittest.mock.call` comparisons fail when using :func:`compare`.

- A re-working of :class:`~testfixtures.popen.MockPopen` to enable it to handle multiple
processes being active at the same time.

- Fixes to :doc:`datetime` documentation.

Thanks to Augusto Wagner Andreoli for his work on the :doc:`datetime` documentation.

6.3.0

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

- Allow the behaviour specified with :meth:`~testfixtures.popen.MockPopen.set_command` to be a
callable meaning that mock behaviour can now be dynamic based on the command executed and whatever
was sent to ``stdin``.

- Make :class:`~testfixtures.popen.MockPopen` more accurately reflect :class:`subprocess.Popen`
on Python 3 by adding ``timeout`` parameters to :meth:`~testfixtures.popen.MockPopenInstance.wait`
and :meth:`~testfixtures.popen.MockPopenInstance.communicate` along with some other smaller changes.

Thanks to Tim Davies for his work on :class:`~testfixtures.popen.MockPopen`.

6.2.0

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

- Better rendering of differences between :class:`bytes` when using :func:`compare`
on Python 3.

6.1.0

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

- Support filtering for specific warnings with :class:`ShouldWarn`.

6.0.2

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

- Fix nasty bug where objects that had neither ``__dict__`` nor ``__slots__``
would always be considered equal by :func:`compare`.

Page 9 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.