Skip to content

Commit 005b422

Browse files
committed
fix(commit): add default value for --body-length-tag in the cli.py and use tuple argument in pytest.mark.parametrize
1 parent 071e450 commit 005b422

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

commitizen/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def __call__(
167167
{
168168
"name": ["--body-length-limit"],
169169
"type": int,
170+
"default": 0,
170171
"help": "Set the length limit of the commit body. Commit message in body will be rewrapped to this length; 0 for no limit.",
171172
},
172173
{

tests/commands/test_commit_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def test_commit_command_with_config_message_length_limit(
369369

370370
@pytest.mark.usefixtures("staging_is_clean")
371371
@pytest.mark.parametrize(
372-
"test_id,body,body_length_limit",
372+
("test_id", "body", "body_length_limit"),
373373
[
374374
# Basic wrapping - long line gets wrapped
375375
(

0 commit comments

Comments
 (0)