Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_beads_batch_58.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,5 +346,7 @@ def test_the_release_rule_precedes_the_generic_chore_rule(self):
def test_no_release_bookkeeping_leaks_into_the_changelog(self):
"""The outcome, not just the ordering."""
entries = [ln for ln in CHANGELOG.read_text(encoding="utf-8").splitlines() if ln.startswith("- ")]
leaked = [e for e in entries if re.match(r"- (chore\(release\)|Release v?[0-9])", e)]
# Bookkeeping is a bare version line ("Release v1.2.3"), not a feature whose
# subject starts with the word, such as "Release 2.0, because ..." (#652).
leaked = [e for e in entries if re.match(r"- (chore\(release\)|Release v?\d+(\.\d+)*( \(#\d+\))?$)", e)]
assert not leaked, leaked
Loading