Fixture : scope "session" not working as expected #8526
Unanswered
harmin-parra
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Without code we have no idea what you do Do you use a contest or import? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have 3 files : file1.py
file2.py
file3.py
Execute with pytest file2 file3 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a function with the following decorator
@pytest.fixture(scope = "session")
The setup fixture is used in 2 different pytest .py files
Execute all tests from the command line
Actual result
The setup fixture is executed twice
Expected result
The setup fixture is executed once
Pytest version : 6.2.2
Beta Was this translation helpful? Give feedback.
All reactions