pip install pytest-mock==3.6.1

Thin-wrapper around the mock package for easier use with pytest

Source
Among top 1000 packages on PyPI.
Over 15.2M downloads in the last 90 days.

Commonly used with pytest-mock

Based on how often these packages appear together in public requirements.txt files on GitHub.

pytest-cov

Pytest plugin for measuring coverage.

pytest-pep8

pytest plugin to check PEP8 requirements

pytest-travis-fold

Folds captured output sections in Travis CI build log

pytest-xdist

pytest xdist plugin for distributed testing and loop-on-failing modes

pytest-pythonpath

pytest plugin for adding to the PYTHONPATH from command line or configs.

pytest-timeout

py.test plugin to abort hanging tests

pytest-capturelog

py.test plugin to capture log messages

pytest

pytest: simple powerful testing with Python

pytest-runner

Invoke py.test as distutils command with dependency resolution

pytest-catchlog

py.test plugin to catch log messages. This is a fork of pytest-capturelog.

pytest-randomly

Pytest plugin to randomly order tests and control random.seed.

pytest-flakes

pytest plugin to check source code with pyflakes

pytest-benchmark

A ``pytest`` fixture for benchmarking code. It will group the tests into rounds that are calibrated to the chosen timer. See calibration_ and FAQ_.

pytest-cache

pytest plugin with mechanisms for caching across test runs

pytest-sugar

pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly).

pytest-flake8

pytest plugin to check FLAKE8 requirements

pytest-isort

py.test plugin to check import ordering using isort

pytest-pgsql

Pytest plugins and helpers for tests using a Postgres database.

pytest-coverage

Pytest plugin for measuring coverage. Forked from `pytest-cov`.

Version usage of pytest-mock

Proportion of downloaded versions in the last 3 months (only versions over 1%).

3.6.1

56.03%

3.3.1

12.51%

3.5.1

8.67%

2.0.0

4.68%

3.2.0

3.12%

1.13.0

2.57%

1.10.0

1.91%

1.10.4

1.49%

3.6.0

1.31%

3.1.1

1.13%

3.1.0

1.00%