()
| 115 | |
| 116 | |
| 117 | def 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…