MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / test_commitizen_excepthook_no_raises

Function test_commitizen_excepthook_no_raises

tests/test_cli.py:145–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144
145def test_commitizen_excepthook_no_raises():
146 with pytest.raises(SystemExit) as excinfo:
147 cli.commitizen_excepthook(
148 NotAGitProjectError,
149 NotAGitProjectError(),
150 "",
151 no_raise=[NotAGitProjectError.exit_code],
152 )
153
154 assert excinfo.type is SystemExit
155 assert excinfo.value.code == 0
156
157
158@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

NotAGitProjectErrorClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…