Kill the surviving mutants of the human-task window
CI / tests (pull_request) Successful in 4m57s

This commit is contained in:
2026-11-19 02:20:23 +01:00
parent 00528e7df4
commit ce26692676
+16 -1
View File
@@ -5,7 +5,7 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from do_epic.test_main import Description, DoEpicTest, MODELS, UNREAD
from do_epic.test_main import DESCRIPTION, Description, DoEpicTest, MODELS, UNREAD
from do_epic.epic_record import EpicRecord
from loop_claude.test_loop_claude import FakeEffects
from do_epic.test_scheduler import issue
@@ -45,6 +45,21 @@ class AHumanTaskThatBlocksAnIssue(DoEpicTest):
self.assertIn("the chunk finished; started ABC-21\n", out)
self.assertEqual([seam for seam, _ in fake.calls if seam == "stream_claude"], [])
def test_the_window_of_a_closed_task_goes_on_while_another_human_task_still_holds_an_issue_up(self) -> None:
self.epic.issues.extend([issue("ABC-30", "do-epic-human"), issue("ABC-31", "do-epic-claude", blockers=("ABC-30",))])
fake = FakeEffects(git=UNREAD, windows=WINDOW)
code, out, err = self.awaited(fake, closes_after=1)
self.assertEqual((code, err), (0, ""))
self.assertEqual(len(fake.dms), 1)
self.assertIn("the chunk finished; started ABC-21, ABC-30\n", out)
def test_the_window_takes_no_running_slot_when_it_starts_the_next_chunk(self) -> None:
self.description = DESCRIPTION.replace("2", "1")
fake = FakeEffects(git=UNREAD, windows=WINDOW)
code, out, err = self.awaited(fake, closes_after=1)
self.assertEqual((code, err), (0, ""))
self.assertIn("the chunk finished; started ABC-21\n", out)
def test_a_task_that_blocks_two_issues_names_both(self) -> None:
self.epic.issues.append(issue("ABC-22", "do-epic-claude", blockers=("ABC-19",)))
fake = FakeEffects(git=UNREAD, windows=WINDOW)