What is the correct behavior of pytest?
1:
Running:
Fixture session-scoped test1
Fixture session-scoped test1
Other-fixture test1
Test1
Other-fixture test2
Test2
Or
2:
Running:
Fixture session-scoped test1
Other-fixture test1
Test1
Fixture session-scoped test1
Other-fixture test2
Test2
I’m using test cases structured like in unit test (class, fixtures and test function for each test case). I expect that the behavior of pytest is 1, but I found 2. Why?