()
| 107 | |
| 108 | |
| 109 | def 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 | |
| 117 | def test_commitizen_debug_excepthook(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…