(
gitcommits, tags, changelog_content, any_changelog_format: ChangelogFormat
)
| 1235 | |
| 1236 | |
| 1237 | def 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 | |
| 1251 | def test_render_changelog_from_default_plugin_values( |
nothing calls this directly
no outgoing calls
no test coverage detected