Skip to content
All lessons

Tech Insights· mauveweb.co.uk

Every mock.patch() is a little smell

From mauveweb.co.uk

The Python unittest.mock library (and the standalone mock package for Python 2) includes an extremely handy feature in patch(), which allows easy and safe monkey-patching for the purposes of testing.

Shared by

Read on mauveweb.co.uk
  • Design Patterns

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us