Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c1f3235

Browse files
committed
test(cz/cz_customize): Change the value for choices
#54
1 parent 088e24f commit c1f3235

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_cz_customize.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ def config():
2121
[[tool.commitizen.customize.questions]]
2222
type = "list"
2323
name = "change_type"
24-
choices = ["feature", "bug fix"]
24+
choices = [
25+
{value = "feature", name = "feature: A new feature."},
26+
{value = "bug fix", name = "bug fix: A bug fix."}
27+
]
2528
message = "Select the type of change you are committing"
2629
2730
[[tool.commitizen.customize.questions]]
@@ -55,7 +58,10 @@ def test_questions(config):
5558
{
5659
"type": "list",
5760
"name": "change_type",
58-
"choices": ["feature", "bug fix"],
61+
"choices": [
62+
{"value": "feature", "name": "feature: A new feature."},
63+
{"value": "bug fix", "name": "bug fix: A bug fix."},
64+
],
5965
"message": "Select the type of change you are committing",
6066
},
6167
{"type": "input", "name": "message", "message": "Body."},

0 commit comments

Comments
 (0)