Skip to content

Glossary: Software Design Patterns

Mock

Also written: unittest.mock

A test stand-in that also records how it was called so the test can check it. Python's `unittest.mock` module makes them.

Where the book teaches it

Related terms

FakeStub