stub - a monkey-patcher on steroids

A method stub or simply stub in software development is a piece of code used to stand in for some other programming functionality. A stub may simulate the behavior of existing code (such as a procedure on a remote machine) or be a temporary substitute for yet-to-be-developed code. Stubs are therefore most useful in porting, distributed computing as well as general software development and testing.

—Wikipedia [1]

The stub library allows you to temporarily replace the behaviour of callables and the value of attributes on objects.

Table Of Contents

Next topic

Getting Started

This Page