Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 74228d1

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 <radian.dc@gmail.com>
1 parent 9d4a673 commit 74228d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎tests/test_cz_customize.py‎

Lines changed: 5 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /