Mocking a class: Mock() or patch()?
Using mock patch to mock an instance method
Why python mock patch doesn't work? mock patch function Correct path of mock.patch python mock patch error Python mock access "real" objects while mocking a module Python Mock Patch multiple methods in a class What's wrong with this Python mock patch? Mocking nested properties with mock Python: Mock Patch module that's used in an array Python mock: mocking base class for inheritance Mock patch is not working with class in __init__.py Mocking two functions with patch for a unit test How to mock a class in an instance attribute using patch How does @mock.patch know which parameter to use for each mock object? unittest mock not mocking mock.patch does not work properly Python mock.patch.object for properties Mock patch with __init__.py Mock patch method and an attribute Patch not mocking a module Python Mock - Mocking several open Mocking open function with mock_open Python mock.patch doesn't patch the correct import Using mock library to patch a class method Avoid Redundant @patch When Mocking with Python What is the difference between mock.patch.object(... and mock.patch( mocking functions using python mock How to get the call count using Mock @patch? How to patch Python class using Mock library