Instead of test error make test fail if during test step has encounters an exception #10378
Unanswered
f00dog-x300
asked this question in
Q&A
Replies: 1 comment
-
Hi, Not currently. I think you can override the pytest_runtest_makereport to change it from an error to a failure though. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello,
So I have code that looks something like this:
If an exception occurs during the
do_action
function, pytest marks the test as an error. I think that's expected. However, is there a way to set it up in pytest where if an exception is encountered during the test that if a function call inside of the test encounters an exception will cause the test to fail?Beta Was this translation helpful? Give feedback.
All reactions