We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d4c83b commit 9a69170Copy full SHA for 9a69170
doc/en/example/simple.rst
@@ -915,12 +915,10 @@ here is a little example implemented via a local plugin:
915
# request.node is an "item" because we use the default
916
# "function" scope
917
report = request.node.stash[phase_report_key]
918
- if ("setup" not in report) or report["setup"].failed:
+ if report["setup"].failed:
919
print("setting up a test failed or skipped", request.node.nodeid)
920
elif ("call" not in report) or report["call"].failed:
921
print("executing test failed or skipped", request.node.nodeid)
922
- elif ("teardown" not in report) or report["teardown"].failed:
923
- print("tear down test failed or skipped", request.node.nodeid)
924
925
926
if you then have failing tests:
0 commit comments