Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8c2a6f4

Browse files
committedApr 8, 2022
test: correct error code for NO_INCREMENT and docstring
1 parent 5028bb6 commit 8c2a6f4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎commitizen/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,10 @@ def commitizen_excepthook(
310310

311311

312312
def parse_no_raise(comma_separated_no_raise: str) -> List[int]:
313-
"""
314-
Convert the given string with exit code digits or exit
315-
codes name to its integer representation
313+
"""Convert the given string to exit codes.
314+
315+
Receives digits and strings and outputs the parsed integer which
316+
represents the exit code found in exceptions.
316317
"""
317318
no_raise_items: List[str] = comma_separated_no_raise.split(",")
318319
no_raise_codes = []

‎tests/commands/test_bump_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def test_none_increment_should_not_call_git_tag_and_error_code_is_not_zero(
358358
cli.main()
359359
except NoneIncrementExit as e:
360360
git.tag.assert_not_called()
361-
assert e.exit_code == ExitCode.NO_COMMITS_FOUND
361+
assert e.exit_code == ExitCode.NO_INCREMENT
362362
raise e
363363

364364
# restore pop stashed

0 commit comments

Comments
 (0)
Please sign in to comment.