MCPcopy
hub / github.com/pytest-dev/pytest / ErrorsHelper

Class ErrorsHelper

testing/test_compat.py:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80
81class ErrorsHelper:
82 @property
83 def raise_baseexception(self):
84 raise BaseException("base exception should be raised")
85
86 @property
87 def raise_exception(self):
88 raise Exception("exception should be caught")
89
90 @property
91 def raise_fail_outcome(self):
92 pytest.fail("fail should be caught")
93
94
95def test_helper_failures() -> None:

Callers 2

test_helper_failuresFunction · 0.85
test_safe_getattrFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_helper_failuresFunction · 0.68
test_safe_getattrFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…