Skip to content

Commit

Permalink
test: correct error code for NO_INCREMENT and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
woile committed Apr 8, 2022
1 parent 5028bb6 commit 8c2a6f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions commitizen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,10 @@ def commitizen_excepthook(


def parse_no_raise(comma_separated_no_raise: str) -> List[int]:
"""
Convert the given string with exit code digits or exit
codes name to its integer representation
"""Convert the given string to exit codes.
Receives digits and strings and outputs the parsed integer which
represents the exit code found in exceptions.
"""
no_raise_items: List[str] = comma_separated_no_raise.split(",")
no_raise_codes = []
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/test_bump_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def test_none_increment_should_not_call_git_tag_and_error_code_is_not_zero(
cli.main()
except NoneIncrementExit as e:
git.tag.assert_not_called()
assert e.exit_code == ExitCode.NO_COMMITS_FOUND
assert e.exit_code == ExitCode.NO_INCREMENT
raise e

# restore pop stashed
Expand Down

0 comments on commit 8c2a6f4

Please sign in to comment.