pytest-mockEasy Playground

Thin wrapper around unittest.mock for pytest

Getting started with pytest-mockRun locally
Install
pip install pytest-mock
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: pytest_mock)

pytest-mock is a third-party package. Thin wrapper around unittest.mock for pytest. Install with: pip install pytest-mock

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?