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

Function test_render_changelog

tests/test_changelog.py:1237–1248  ·  view source on GitHub ↗
(
    gitcommits, tags, changelog_content, any_changelog_format: ChangelogFormat
)

Source from the content-addressed store, hash-verified

1235
1236
1237def test_render_changelog(
1238 gitcommits, tags, changelog_content, any_changelog_format: ChangelogFormat
1239):
1240 parser = ConventionalCommitsCz.commit_parser
1241 changelog_pattern = ConventionalCommitsCz.changelog_pattern
1242 loader = ConventionalCommitsCz.template_loader
1243 template = any_changelog_format.template
1244 tree = changelog.generate_tree_from_commits(
1245 gitcommits, tags, parser, changelog_pattern
1246 )
1247 result = changelog.render_changelog(tree, loader, template)
1248 assert result == changelog_content
1249
1250
1251def test_render_changelog_from_default_plugin_values(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected