python3-pytest-mock

Thin wrapper around mock for easier use with pytest (Python 3 module)

Description

This plugin installs a "mocker" fixture which is a thin wrapper around the patching API provided by the excellent "mock" package or by unittest.mock, but with the benefit of not having to worry about undoing patches at the end of a test. It also provides other nice utilities such as spy and stub, and uses pytest introspection when comparing calls.

This package provides the Python 3 module.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/pytest-dev/pytest-mock/


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-pytest-mock