MCPcopy Create free account
hub / github.com/bloomberg/pystack / test_intercept_runtime_errors

Function test_intercept_runtime_errors

tests/unit/test_extension.py:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def test_intercept_runtime_errors():
12 # GIVEN
13 @intercept_runtime_errors()
14 def callable():
15 raise RuntimeError
16
17 # WHEN/THEN
18 with pytest.raises(EngineError):
19 callable()
20
21
22@pytest.mark.parametrize("status", [-2, 0, 1])

Callers

nothing calls this directly

Calls 1

callableFunction · 0.85

Tested by

no test coverage detected