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

Function test_commitizen_debug_excepthook

tests/test_cli.py:117–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116
117def test_commitizen_debug_excepthook():
118 with pytest.raises(SystemExit) as excinfo:
119 cli.commitizen_excepthook(
120 NotAGitProjectError,
121 NotAGitProjectError(),
122 "",
123 debug=True,
124 )
125
126 assert excinfo.value.code == NotAGitProjectError.exit_code
127 assert "NotAGitProjectError" in str(excinfo.traceback[0])
128
129
130@pytest.mark.skipif(

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…