Kill the mutant that strips more than blank lines off a changelog with no section
This commit is contained in:
@@ -619,7 +619,7 @@ class PatchChangelog(unittest.TestCase):
|
||||
self.assertEqual(patch.headed("# Changelog\n\n## 0.1.0\n\n- First.\n", ["- Fixed.", "- Also."], "0.1.1"), "# Changelog\n\n## 0.1.1\n\n- Fixed.\n- Also.\n\n## 0.1.0\n\n- First.\n")
|
||||
|
||||
def test_ends_a_changelog_with_no_section_with_the_patchs_section(self):
|
||||
self.assertEqual(patch.headed("# Changelog\n\n", ["- Fixed."], "0.1.1"), "# Changelog\n\n## 0.1.1\n\n- Fixed.\n")
|
||||
self.assertEqual(patch.headed("# Changelog\n\nFor Linux and macOS X\n\n", ["- Fixed."], "0.1.1"), "# Changelog\n\nFor Linux and macOS X\n\n## 0.1.1\n\n- Fixed.\n")
|
||||
|
||||
def test_moves_the_patchs_entries_from_unreleased_to_a_section_after_it(self):
|
||||
changelog = "# Changelog\n\n## Unreleased\n\n- Second.\n- Fixed.\n\n## 0.1.0\n\n- First.\n"
|
||||
|
||||
Reference in New Issue
Block a user