We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4502b86 commit2090fbcCopy full SHA for 2090fbc
tests/conftest.py
@@ -399,6 +399,8 @@ def pytest_runtest_makereport(item: pytest.Function, call: pytest.CallInfo):
399
# Note that hook wrappers don’t return results themselves,
400
# they merely perform tracing or other side effects around the actual hook implementations.
401
#
402
+# https://docs.pytest.org/en/7.1.x/reference/reference.html#test-running-runtest-hooks
403
+#
404
assertitemisnotNone
405
assertcallisnotNone
406
# it may be pytest.Function or _pytest.unittest.TestCaseFunction
@@ -425,7 +427,9 @@ def pytest_runtest_makereport(item: pytest.Function, call: pytest.CallInfo):
425
427
ifcall.when=="teardown":
426
428
return
429
-errMsg="[pytest_runtest_makereport] unknown 'call.when' value: [{0}].".format(call.when)
430
+errMsg="[pytest_runtest_makereport] unknown 'call.when' value: [{0}].".format(
431
+call.when
432
+ )
433
434
raiseRuntimeError(errMsg)
435