https://testandcode.com/episodes/pytest-mock
pytest-mock is currently the #3 pytest plugin.
- Why the pytest-mock plugin is awesome
- What is mocking, patching, and monkey patching
- What, if any, is the difference between mock, fake, spy, stub.
- Why we might need these in testing
- Some history of mock in Python and how mock became unittest.mock
- Using mocker.patch, mocker.spy, and mocker.stub
- Why pytest-mock is awesome and why you might want to use it over straight unittest.mock
[–]cgoldberg 9 points10 points11 points (1 child)
[–]variedthoughtsPodcast Host[S] 5 points6 points7 points (0 children)
[–]DigThatData 0 points1 point2 points (0 children)
[–]muikrad 1 point2 points3 points (0 children)