Kill the mutants that survived on the lines the release review changed
This commit is contained in:
@@ -24,6 +24,13 @@ class TheHeadOfAnEntry(unittest.TestCase):
|
||||
self.assertEqual(found, Entry("ABC-1", {"issuelinks": [BLOCKED, outward, relates]}, (Link("ABC-2", "9"),), {"L": 2}))
|
||||
self.assertEqual(entry_of(raw(), "plan"), Entry("ABC-1", {"issuelinks": []}, (), {}))
|
||||
|
||||
def test_finds_a_blocked_by_link_listed_after_a_link_of_another_kind(self):
|
||||
outward = {"id": "3", "type": {"inward": "is blocked by"}, "outwardIssue": {"key": "ABC-3"}}
|
||||
relates = {"id": "4", "type": {"inward": "relates to"}, "inwardIssue": {"key": "ABC-4"}}
|
||||
for other in (outward, relates):
|
||||
with self.subTest(other=other):
|
||||
self.assertEqual(jira.blocked_by_links({"issuelinks": [other, BLOCKED]}), (Link("ABC-2", "9"),))
|
||||
|
||||
def test_an_entry_without_an_issue_key_is_a_failure(self):
|
||||
for wrong in ([], {}, {"key": 7}, {"key": "abc"}):
|
||||
with self.subTest(wrong=wrong):
|
||||
|
||||
Reference in New Issue
Block a user