Answer prose round 1: 0 🔴, 3 🟡 (0 misread); the Jira sentence moves after the finish sentence, the help and error text name Jira, and the test names lose the negation
This commit is contained in:
@@ -278,7 +278,7 @@ class FinishInJira(TodoItem):
|
||||
patched.start()
|
||||
self.addCleanup(patched.stop)
|
||||
|
||||
def test_finishes_without_either_flag_and_leaves_a_changelog_that_exists_alone(self):
|
||||
def test_finishes_without_either_flag_and_doesnt_touch_the_changelog(self):
|
||||
self.changelog.write_text(CHANGELOG)
|
||||
self.assertEqual(self.run_main("finish", "3"), (0, "Finished item 3 in the plan in memory.\n", ""))
|
||||
self.assertEqual((self.plan.rows, self.changelog.read_text()), ({}, CHANGELOG))
|
||||
@@ -288,7 +288,7 @@ class FinishInJira(TodoItem):
|
||||
self.assertEqual(self.run_main("finish", "3", "--no-changelog"), (0, "Finished item 3 in the plan in memory.\n", ""))
|
||||
self.assertEqual(self.changelog.read_text(), CHANGELOG)
|
||||
|
||||
def test_refuses_a_bullet_writing_nothing_and_says_the_issues_history_is_the_changelog(self):
|
||||
def test_refuses_a_bullet_and_says_the_issues_history_is_the_changelog(self):
|
||||
self.changelog.write_text(CHANGELOG)
|
||||
code, out, err = self.run_main("finish", "3", "--changelog", "Runs are fast.")
|
||||
self.assertEqual((code, out), (1, ""))
|
||||
|
||||
Reference in New Issue
Block a user