()
| 143 | |
| 144 | |
| 145 | def test_commitizen_excepthook_no_raises(): |
| 146 | with pytest.raises(SystemExit) as excinfo: |
| 147 | cli.commitizen_excepthook( |
| 148 | NotAGitProjectError, |
| 149 | NotAGitProjectError(), |
| 150 | "", |
| 151 | no_raise=[NotAGitProjectError.exit_code], |
| 152 | ) |
| 153 | |
| 154 | assert excinfo.type is SystemExit |
| 155 | assert excinfo.value.code == 0 |
| 156 | |
| 157 | |
| 158 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…