-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin hook pytest_runtest_teardown runs on skipped test #3385
Comments
i recall thats per design, and unittest disagrees |
Lines 69 to 87 in e012dbe
|
In this case setup did not run, only teardown. Is there a way to know in the teardown hook that the test was skipped (or do i need to track this myself)? |
@lodagro skip is evaluated as part of setup, so setup did in fact run a bit can you outline the use-case of the plugin, if we get a handle on what you want to do we may be able to point out a nice alternative |
The plugin is managing a database, used to store data collected during the tests. |
conftest.py
test_teardown.py
run output (with relevant version info)
The text was updated successfully, but these errors were encountered: