This is a collection of examples of how to mock various things in Python.
indirect: How to mock a function that is called indirectly by another function.
inheritance: How to mock a function that is called by a class that inherits from another class.
class: How to mock a class.
class_method: How to mock a class method.
class_property: How to mock a class property.
fixture multiple: How to mock an object that is called by a fixture that is used by multiple tests.
mock multiple: objects: How to mock multiple objects once.
mock function: How to mock a function.