Answer stability round 1: 0 🔴, 3 🟡 (0 misread); restrict a repo name, split the multi-behaviour tests, and word the prose findings of the prose round
This commit is contained in:
@@ -191,8 +191,16 @@ class Jira(Case):
|
||||
key = store.file("ABC-12", "Count the runs.", "", ())
|
||||
self.jira.answers[("PUT", f"{ISSUES}/{key}")] = Failure("Jira answered 403")
|
||||
self.assertEqual(store.add_label(str(key), "repo:log"), Failure(f"cannot label {key}: Jira answered 403"))
|
||||
read = store.read()
|
||||
assert isinstance(read, list), read
|
||||
self.assertEqual([issue.labels for issue in read], [()])
|
||||
|
||||
def test_an_issue_jira_cannot_read_is_not_labelled(self) -> None:
|
||||
store = self.new_store()
|
||||
key = store.file("ABC-12", "Count the runs.", "", ())
|
||||
self.jira.answers[("GET", f"{ISSUES}/{key}?fields=parent")] = Failure("Jira answered 500")
|
||||
self.assertEqual(store.add_label(str(key), "repo:log"), Failure(f"cannot read {key} to label it: Jira answered 500"))
|
||||
self.assertNotIn(("PUT", f"{ISSUES}/{key}"), self.jira.calls)
|
||||
|
||||
def test_an_epic_the_account_cannot_see_fails_the_read(self) -> None:
|
||||
store = JiraEpic(Epic(SITE, "ABC-99"), self.env_file, self.jira, to_markdown, to_adf)
|
||||
|
||||
Reference in New Issue
Block a user