Answer stability round 1: 0 🔴, 17 🟡 (0 misread); read line ends as before, drop a stale copy, say why a read failed, and test each failure the round named
This commit is contained in:
@@ -188,6 +188,10 @@ class Finish(TodoItem):
|
||||
self.assertEqual(self.run_main("finish", "2", "--changelog", "Tests are tight.")[0], 0)
|
||||
self.assertEqual(self.changelog.read_text(), "# Changelog\n\n## Unreleased\n\n- Tests are tight.\n")
|
||||
|
||||
def test_needs_no_changelog_choice_where_the_project_has_no_changelog(self):
|
||||
self.assertEqual(self.run_main("finish", "2"), (0, f"Finished item 2 in {self.todo}.\n", ""))
|
||||
self.assertFalse(self.changelog.exists())
|
||||
|
||||
def test_needs_a_changelog_choice_where_a_changelog_exists(self):
|
||||
self.changelog.write_text(CHANGELOG)
|
||||
before = self.todo.read_text()
|
||||
|
||||
Reference in New Issue
Block a user