MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_long_answer

Function test_long_answer

tests/test_cz_conventional_commits.py:73–87  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

71
72
73def test_long_answer(config):
74 conventional_commits = ConventionalCommitsCz(config)
75 answers = {
76 "prefix": "fix",
77 "scope": "users",
78 "subject": "email pattern corrected",
79 "is_breaking_change": False,
80 "body": "complete content",
81 "footer": "closes #24",
82 }
83 message = conventional_commits.message(answers)
84 assert (
85 message
86 == "fix(users): email pattern corrected\n\ncomplete content\n\ncloses #24"
87 )
88
89
90def test_breaking_change_in_footer(config):

Callers

nothing calls this directly

Calls 2

messageMethod · 0.95

Tested by

no test coverage detected