tests pass alone but fail when I run the whole suite
pytest 7.4.0 on Python 3.11. A handful of my tests pass individually but fail when I run the whole file, and which ones fail changes between runs. They all write to the same tmp path from a fixture with scope='module'. Could that be it, and how do I make it deterministic? Can't just disable pytest-randomly, the team uses it everywhere.
3 replies