Test the scoring call, its answer and the refusals a mutant survived
CI / tests (pull_request) Has been cancelled

This commit is contained in:
Lilleman
2026-11-20 15:45:45 +01:00
parent af81dcdcbc
commit 481e13253a
5 changed files with 113 additions and 0 deletions
+3
View File
@@ -236,6 +236,9 @@ class EpicStoreContract:
refusals = [store.set_scores("ZZZ-1", SCORES, "", "Scored."), store.set_scores("not a key", SCORES, "", "Scored."), store.set_scores(key, SCORES | {"L": 9}, "", "Scored."), store.set_scores(key, {"L": 1}, "", "Scored."), store.set_scores(key, SCORES | {"R": 1}, "", "Scored."), store.set_scores(key, SCORES, "the import by 5", "Scored."), store.set_scores(key, SCORES, "", " \n")]
for refused in refusals:
self.assertIsInstance(refused, Failure)
self.assertEqual(refusals[1], Failure(f"not a key is not one of the child issues of the epic {store.epic_key}, so it cannot be scored"))
assert isinstance(refusals[3], Failure)
self.assertEqual(refusals[3].reason[refusals[3].reason.rindex(key):], f"{key} is given L: set each of L, E, I and S, and nothing else")
[issue] = self.issues(store)
self.assertEqual((issue.scores, self.comments_on(store, key)), ({}, []))