Skip to content
What the mock? -- Cheatsheet for mocking in Python
Branch: master
Clone or download
Yeray Diaz Diaz
Yeray Diaz Diaz Remove unused namedtuple
Latest commit 19e0b57 Jan 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
01_patch_on_import Code examples Apr 29, 2018
02_patching_classes Code examples Apr 29, 2018
03_speccing Add expected failure Dec 5, 2018
04_patching_builtins Rename dir Sep 29, 2018
05_context_managers Context manager example Apr 30, 2018
07_class_helpers Remove unused namedtuple Jan 25, 2019
.gitignore Mock at module level Apr 6, 2018 Add link to article May 9, 2018 Code examples Apr 29, 2018

What the mock? — A cheatsheet for mocking in Python

Code examples for my article with the same name.

Simply run:

  • python -m unittest for the tests examples,
  • and python for the introduction to the Mock class.


You can’t perform that action at this time.