Pytest-mock

Latest version: v3.14.0

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

Scan your dependencies

Page 10 of 11

0.7.0

-----

Thanks to `fogo`_, mocker.spy can now prey upon staticmethods and classmethods. :smile:

0.6.0

-----

* Two new auxiliary methods, ``spy`` and ``stub``. See ``README`` for usage.
(Thanks `fogo`_ for complete PR!)

0.5.0

-----

* ``Mock`` and ``MagicMock`` are now accessible from the ``mocker`` fixture,
many thanks to `marcwebbie`_ for the complete PR!

0.4.3

-----

* ``mocker`` fixture now returns the same object (`8`_). Many thanks to `RonnyPfannschmidt`_ for the PR!

.. _8: https://github.com/pytest-dev/pytest-qt/issues/8

0.4.2

-----

* Small fix, no longer using wheel as an alternate package since it
conditionally depends on mock module based on Python version,
as Python >= 3.3 already includes ``unittest.mock``.
Many thanks to `The-Compiler`_ for letting me know and providing a PR with the fix!

0.4.1

-----

* Small release that just uses ``pytest_mock`` as the name of the plugin,
instead of ``pytest-mock``: this makes it simple to depend on this plugin
explicitly using ``pytest_plugins`` module variable mechanism.

Page 10 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.