Skip to content

Commit b6cb867

Browse files
committed
test: correct error code for NO_INCREMENT and docstring
1 parent cfaea2c commit b6cb867

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

commitizen/cli.py

+4-3
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 = comma_separated_no_raise.split(",")
318319
no_raise_codes = []

tests/commands/test_bump_command.py

+1-1
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)