Answer stability round 1: 0 🔴, 2 🟡 (0 misread); score the person's issue in the contract test, and hold scores, moves and exempt apart from blockers

This commit is contained in:
2026-11-18 18:32:38 +01:00
parent f0d99c8141
commit e8255be534
6 changed files with 25 additions and 19 deletions
+4 -2
View File
@@ -25,8 +25,10 @@ class MemoryEpicContract(EpicStoreContract, unittest.TestCase):
store.change(key, by_loop=False)
return key
def score(self, store: MemoryEpic, key: str, scores: dict[str, str]) -> None: # type: ignore[override]
store.change(key, scores=jira_epic.scores(key, scores))
def score(self, store: MemoryEpic, key: str, scores: dict[str, object]) -> None: # type: ignore[override]
read = jira_epic.scores(key, scores)
assert not isinstance(read, Failure), read
store.change(key, scores=read.scores, moves=read.moves, exempt=read.exempt)
def block(self, store: MemoryEpic, key: str, blocker: str) -> None: # type: ignore[override]
store.change(key, blockers=(*next(issue for issue in store.issues if issue.key == key).blockers, blocker))