Kill the surviving mutants of the human-task window's second version
This commit is contained in:
@@ -6,7 +6,7 @@ import unittest
|
|||||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||||
|
|
||||||
from project_config.test_project_config import configured
|
from project_config.test_project_config import configured
|
||||||
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 do_epic.epic_record import EpicRecord
|
||||||
from failure import Failure
|
from failure import Failure
|
||||||
from loop_claude.test_loop_claude import FakeEffects
|
from loop_claude.test_loop_claude import FakeEffects
|
||||||
@@ -73,6 +73,19 @@ class AHumanTaskThatBlocksAnIssue(DoEpicTest):
|
|||||||
self.assertEqual(len(fake.dms), 1)
|
self.assertEqual(len(fake.dms), 1)
|
||||||
self.assertIn("the chunk finished; started ABC-21, ABC-30\n", out)
|
self.assertIn("the chunk finished; started ABC-21, ABC-30\n", out)
|
||||||
|
|
||||||
|
def test_the_window_leaves_itself_out_of_the_running_chunks_when_it_starts_the_next(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_the_status_says_that_a_task_without_a_window_starts_at_once(self) -> None:
|
||||||
|
fake = FakeEffects(windows="")
|
||||||
|
code, out, err = self.run_main(["ABC-12", "--status"], fake)
|
||||||
|
self.assertEqual((code, err), (0, ""))
|
||||||
|
self.assertEqual(out.replace("<1790000000> ", "").splitlines()[0], "ABC-19 waits: it has not started; `do-epic ABC-12` starts it")
|
||||||
|
|
||||||
def test_a_task_that_blocks_two_issues_names_both(self) -> None:
|
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",)))
|
self.epic.issues.append(issue("ABC-22", "do-epic-claude", blockers=("ABC-19",)))
|
||||||
fake = FakeEffects(git=UNREAD, windows=WINDOW)
|
fake = FakeEffects(git=UNREAD, windows=WINDOW)
|
||||||
|
|||||||
Reference in New Issue
Block a user