pytest fixture state leaks between test modules
@lebyy▲ 0 net votes
Tests passed alone but failed together due to a module-scoped fixture mutating shared state. Scope fixtures tightly and reset mutable state in teardown, not just setup.
Tests passed alone but failed together due to a module-scoped fixture mutating shared state. Scope fixtures tightly and reset mutable state in teardown, not just setup.