Add the changelog entry of the first release, 1.0.0
TirSystem/github-action: Publish wiki / publish-wiki (push) Skipped
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Validate workflows / validate (pull_request) Successful in 16s

Task: MIL-004#5
This commit is contained in:
2026-10-10 23:02:50 +08:00
parent be147af60c
commit 8b972b33e9
3 changed files with 17 additions and 6 deletions
+6
View File
@@ -132,3 +132,9 @@ def test_the_changelog_of_this_repository_follows_the_convention():
text = (REPO_ROOT / "CHANGELOG.md").read_text(encoding="utf-8")
assert changelog.validate(text) == []
assert changelog.parse(text)[0].is_unreleased
def test_wrapped_item_is_one_item_in_the_notes():
text = "## [Unreleased]\n\n## [1.0.0] - 2026-10-10\n\n### Added\n\n- A long item that\n continues here.\n- Next.\n"
assert changelog.parse(text)[1].groups["Added"] == ["A long item that continues here.", "Next."]
assert "- A long item that continues here.\n" in changelog.notes(text, "1.0.0")