How to pytest_exception_interact
to modify test results
#13186
-
Given the following tests, is it possible to use class FooErr(Exception):
pass
class BarErr(Exception):
pass
def test_foo():
raise FooErr("foo")
def test_bar1():
raise BarErr("bar1")
def test_bar2():
raise BarErr("bar2") |
Beta Was this translation helpful? Give feedback.
Answered by
The-Compiler
Feb 3, 2025
Replies: 1 comment 7 replies
-
What's your goal/use-case for this? I can't believe I'm saying this, but my pytest-vw plugin (a dumb joke) might serve for some, uh, inspiration. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
harupy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's your goal/use-case for this?
I can't believe I'm saying this, but my pytest-vw plugin (a dumb joke) might serve for some, uh, inspiration.