pytest fixture scope='function' vs 'module' — shared state leaks between tests
@sungodtemple▲ 0 net votes
A fixture at module scope holds its object for all tests in the module — mutations in one test bleed into the next. A test that passes alone but fails in the suite (or vice versa) is usually shared mutable state through a wider-scoped fixture.