MCPcopy Create free account
hub / github.com/pytest-dev/pytest / ErrorsHelper

Class ErrorsHelper

testing/test_compat.py:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152class ErrorsHelper:
153 @property
154 def raise_baseexception(self):
155 raise BaseException("base exception should be raised")
156
157 @property
158 def raise_exception(self):
159 raise Exception("exception should be caught")
160
161 @property
162 def raise_fail_outcome(self):
163 pytest.fail("fail should be caught")
164
165
166def 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