You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest to move your fixtures to a conftest.py file, importing them is really not recommended because it might bring some problems as @RonnyPfannschmidt mentioned.
Just create a conftest.py file at the root of your test files and put your fixtures there and they will be available automatically for all test modules below it.
Hi,
I am using pytest 3.0.1.
I've created a lot of test fixtures and wanted to push them to module scope.
I now see exceptions that show that they get executed twice.
I suspect that by importing my fixtures from one test module to another, I created a second session scoped fixture.
So in test_a.py I do:
and in test_b.py I do:
Can you confirm my suspicion?
The text was updated successfully, but these errors were encountered: