Pytest-mock

Latest version: v3.14.0

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

Scan your dependencies

Page 7 of 11

1.7.1

-----

* Fix ``setup.py`` to correctly read the ``README.rst``. Thanks `ghisvail`_ for the fix (`107`_).

.. _107: https://github.com/pytest-dev/pytest-mock/issues/107

1.7.0

-----

**Incompatible change**

* ``pytest-mock`` no longer supports Python 2.6 and Python 3.3, following the lead of
``pytest`` and other projects in the community. Thanks `hugovk`_ for the PR (`96`_).

**Packaging**

* Fix ``mock`` requirement in Python 2. Thanks `ghisvail`_ for the report (`101`_).

**Internal**

* Some tests in ``pytest-mock``'s suite are skipped if assertion rewriting is disabled (`102`_).

.. _ghisvail: https://github.com/ghisvail
.. _hugovk: https://github.com/hugovk
.. _96: https://github.com/pytest-dev/pytest-mock/pull/96
.. _101: https://github.com/pytest-dev/pytest-mock/issues/101
.. _102: https://github.com/pytest-dev/pytest-mock/issues/102

1.6.3

-----

* Fix ``UnicodeDecodeError`` during assert introspection in ``assert_called_with`` in Python 2.
Thanks `AndreasHogstrom`_ for the report (`91`_).


.. _AndreasHogstrom: https://github.com/AndreasHogstrom

.. _91: https://github.com/pytest-dev/pytest-mock/issues/91

1.6.2

-----

* Provide source package in ``tar.gz`` format and remove obsolete ``MANIFEST.in``.

1.6.1

-----

* Fix ``mocker.resetall()`` by ignoring mocker objects which don't have a
``resetall`` method, like for example ``patch.dict``.
Thanks `jdavisp3`_ for the PR (`88`_).

.. _jdavisp3: https://github.com/jdavisp3

.. _88: https://github.com/pytest-dev/pytest-mock/pull/88

1.6.0

-----

* The original assertions raised by the various ``Mock.assert_*`` methods
now appear in the failure message, in addition to the message obtained from
pytest introspection.
Thanks `quodlibetor`_ for the initial patch (`79`_).

.. _quodlibetor: https://github.com/quodlibetor

.. _79: https://github.com/pytest-dev/pytest-mock/pull/79

Page 7 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.