Skip to content

Commit ef9dc84

Browse files
committed
test(cz_customize): fix missing YAML test keys against JSON/TOML
> test_commit_parser[config2] - AssertionError: > assert '(?P<message>.*)' == '^(?P<change_...<message>.*)?' > test_changelog_pattern[config2] - AssertionError: > assert '.*' == '^(feature|bug fix)?(!)?' > test_change_type_map[config2] - AssertionError: > assert None == {'bug fix': 'Fix', 'feature': 'Feat'} Signed-off-by: Adrian DC <[email protected]>
1 parent ec2f2bc commit ef9dc84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_cz_customize.py

+5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@
110110
schema: '<type>: <body>'
111111
schema_pattern: '(feature|bug fix):(\\s.*)'
112112
bump_pattern: '^(break|new|fix|hotfix)'
113+
commit_parser: '^(?P<change_type>feature|bug fix):\\s(?P<message>.*)?'
114+
changelog_pattern: '^(feature|bug fix)?(!)?'
115+
change_type_map:
116+
feature: Feat
117+
bug fix: Fix
113118
bump_map:
114119
break: MAJOR
115120
new: MINOR

0 commit comments

Comments
 (0)