MCPcopy
hub / github.com/commitizen-tools/commitizen / test_arg_debug

Function test_arg_debug

tests/test_cli.py:100–106  ·  view source on GitHub ↗
(util: UtilFixture)

Source from the content-addressed store, hash-verified

98
99
100def test_arg_debug(util: UtilFixture):
101 util.run_cli("--debug", "info")
102 excepthook = sys.excepthook
103 # `sys.excepthook` is replaced by a `partial` in `cli.main`
104 # it's not a normal function
105 assert isinstance(excepthook, partial)
106 assert excepthook.keywords.get("debug") is True
107
108
109def test_commitizen_excepthook():

Callers

nothing calls this directly

Calls 2

run_cliMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…