shared mutable state

Data that several tests or requests can both read and change, so one can affect another.

In more detail

When a wide-scoped fixture returns a list or dictionary and one test adds to it, a later test sees the leftovers and fails, but only when run after the first. Keep shared values read only, or give each test its own copy.

Related terms

Taught in

References