Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit-hooks
/ test_raises_on_error
Function
test_raises_on_error
tests/util_test.py:10–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
9
10
def
test_raises_on_error():
11
with
pytest.raises(CalledProcessError):
12
cmd_output(
'sh'
,
'-c'
,
'exit 1'
)
13
14
15
def
test_output():
Callers
nothing calls this directly
Calls
1
cmd_output
Function · 0.90
Tested by
no test coverage detected