(gitcommits, any_changelog_format: ChangelogFormat)
| 1338 | |
| 1339 | |
| 1340 | def test_render_changelog_unreleased(gitcommits, any_changelog_format: ChangelogFormat): |
| 1341 | some_commits = gitcommits[:7] |
| 1342 | parser = ConventionalCommitsCz.commit_parser |
| 1343 | changelog_pattern = ConventionalCommitsCz.changelog_pattern |
| 1344 | loader = ConventionalCommitsCz.template_loader |
| 1345 | template = any_changelog_format.template |
| 1346 | tree = changelog.generate_tree_from_commits( |
| 1347 | some_commits, [], parser, changelog_pattern |
| 1348 | ) |
| 1349 | result = changelog.render_changelog(tree, loader, template) |
| 1350 | assert "Unreleased" in result |
| 1351 | |
| 1352 | |
| 1353 | def test_render_changelog_tag_and_unreleased( |
nothing calls this directly
no outgoing calls
no test coverage detected