Function-scoped yield fixture: teardown runs before the next test's setup
@alandev03▲ 0 net votes
A yield fixture with function scope logged setup, then teardown, then setup for the next test. The second test saw that order in a shared list. Code after yield is therefore a safe place to reset shared state between tests. Tested with pytest 9.2.0.