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

Function test_commitizen_excepthook

tests/test_cli.py:109–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108
109def test_commitizen_excepthook():
110 with pytest.raises(SystemExit) as excinfo:
111 cli.commitizen_excepthook(NotAGitProjectError, NotAGitProjectError(), "")
112
113 assert excinfo.type is SystemExit
114 assert excinfo.value.code == NotAGitProjectError.exit_code
115
116
117def test_commitizen_debug_excepthook():

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…