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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user