MCPcopy 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
10def test_raises_on_error():
11 with pytest.raises(CalledProcessError):
12 cmd_output('sh', '-c', 'exit 1')
13
14
15def test_output():

Callers

nothing calls this directly

Calls 1

cmd_outputFunction · 0.90

Tested by

no test coverage detected