Skip to content

Commit 078412d

Browse files
yjawLee-W
authored andcommitted
fix(commit): add default value for --body-length-tag in the cli.py and use tuple argument in pytest.mark.parametrize
1 parent d80393b commit 078412d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎commitizen/cli.py‎

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

‎tests/commands/test_commit_command.py‎

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

379379
@pytest.mark.usefixtures("staging_is_clean")
380380
@pytest.mark.parametrize(
381-
"test_id,body,body_length_limit",
381+
("test_id", "body", "body_length_limit"),
382382
[
383383
# Basic wrapping - long line gets wrapped
384384
(

0 commit comments

Comments
 (0)