Kill the mutants that survived on the lines the release review changed
This commit is contained in:
@@ -180,6 +180,11 @@ class JiraPlan(unittest.TestCase):
|
||||
self.assertIsInstance(failure, Failure)
|
||||
self.assertTrue(failure.reason.startswith("ABC-1 is not in the shape Jira Cloud's REST API version 3 documents: "), failure) # type: ignore[union-attr]
|
||||
|
||||
def test_an_issue_that_lacks_a_field_fails_the_read_naming_the_field(self) -> None:
|
||||
good = issue("ABC-1")
|
||||
lacking = good | {"fields": {name: value for name, value in good["fields"].items() if name != "fixVersions"}}
|
||||
self.assertEqual(self.read(lacking), Failure("ABC-1 is not in the shape Jira Cloud's REST API version 3 documents: KeyError('fixVersions')")) # type: ignore[arg-type]
|
||||
|
||||
def test_converts_every_description_in_one_run_and_none_for_an_issue_without_one(self):
|
||||
found = self.items(issue("ABC-1", description=adf("One.")), issue("ABC-2"), issue("ABC-3", description=adf("Three.")), issue("ABC-4", description=adf("Four.")))
|
||||
self.assertEqual([item.detail for item in found], ["One.", "", "Three.", "Four."])
|
||||
|
||||
Reference in New Issue
Block a user