(util: UtilFixture)
| 98 | |
| 99 | |
| 100 | def 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 | |
| 109 | def test_commitizen_excepthook(): |