Answer stability round 1: 0 🔴, 5 🟡 (0 misread); order issues whose keys share a number, and test the goals that fail, a malformed held score and the scoring call's folder
CI / tests (pull_request) Successful in 5m10s

This commit is contained in:
Lilleman
2026-11-20 16:09:06 +01:00
parent abe7226baa
commit 27b6433f7d
6 changed files with 54 additions and 11 deletions
+5
View File
@@ -251,6 +251,11 @@ class Jira(Case):
self.assertEqual(store.set_scores(key, scores, "", "Scored."), Failure(f"cannot read {key} to score it: Jira answered 503"))
self.jira.answers[("GET", read)] = {"fields": {"parent": {"key": "ABC-12"}}, "properties": {"plan-item": "L 2"}}
self.assertEqual(store.set_scores(key, scores, "", "Scored."), Failure(f"{key}'s issue property plan-item is not a JSON object"))
self.jira.answers[("GET", read)] = {"fields": {"parent": {"key": "ABC-12"}}, "properties": {"plan-item": {"L": "many"}}}
refused = store.set_scores(key, scores, "", "Scored.")
assert isinstance(refused, Failure), refused
self.assertTrue(refused.reason.startswith(f"cannot score {key}: item {key}'s L 'many'"), refused.reason)
self.assertEqual(self.jira.comments.get(key, []), [])
del self.jira.answers[("GET", read)]
self.jira.answers[("POST", f"{ISSUES}/{key}/comment")] = Failure("Jira answered 503")
self.assertEqual(store.set_scores(key, scores, "", "Scored."), Failure(f"cannot comment on {key} to tell its team the scores: Jira answered 503"))