-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
I have a pytest fixture which runs at the "session" scope. This fixture starts a local web server, and initiates a sauce labs connection. Upon teardown, it stops the server and closes the sauce connection.
When the final test of my test run is a "flaky" test and fails, it acts as if the session is over and calls my fixture tear down.
Then, the flaky test is rerun, which invokes the session fixture once again.
I would like the session fixture to only be called once obviously due to the overhead of having to spin up the server and start the sauce connection again.
This could be a pytest issue, but I figured I would open an issue here as well to see if there is any suggestions or solutions in the works?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels