A dummy is a test double that exists only to satisfy a parameter list: an object passed to a function so the call compiles, never invoked, never inspected.
user = User(name="Ana") # the constructor needs an address; the test doesn't
address = DummyAddress() # never read, never called
user.set_address(address)
The dummy is the fifth and least used member of the test double family defined by Gerard Meszaros in xUnit Test Patterns (2007). Its role is narrow: fill a gap in a signature so the code under test can run. It has no behaviour, no expectation, no recorded calls.
If the code under test touches the dummy, that is a signal — either the dummy is not appropriate for this test, or the test is exercising a path it was not designed to exercise. Meszaros' guideline: a dummy that gets used should be reclassified as a stub (if it is returning data) or a mock (if it is verifying a call).