Kill the surviving mutants of the blocker check and the worker's next-step sentence
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -4,6 +4,7 @@ import fcntl
|
||||
import io
|
||||
import pathlib
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
@@ -12,7 +13,7 @@ from do_epic.epic_record import EpicRecord
|
||||
from failure import Failure
|
||||
from loop_effects.doubles import FakeEffects
|
||||
from record_store.held import Held
|
||||
from do_epic import main
|
||||
from do_epic import findings, main
|
||||
from do_epic.backend.fake import MemoryEpic
|
||||
from loop_state.paths import paths_from
|
||||
|
||||
@@ -137,6 +138,13 @@ class FilingAFinding(FindingsTest):
|
||||
self.assertEqual((code, out, err, len(self.store.issues)), (1, "", main.HELP + "\n", 2))
|
||||
|
||||
|
||||
class Instructions(unittest.TestCase):
|
||||
def test_say_nothing_of_a_next_pull_request_without_the_chunks_issue(self) -> None:
|
||||
told = findings.instructions("ABC-12", pathlib.Path("/b/do-epic"), "Swedish")
|
||||
self.assertTrue(told.endswith("its text on stdin. Write the issue and the decision in Swedish, the epic's language."), told)
|
||||
self.assertNotIn("--blocked-by", told)
|
||||
|
||||
|
||||
class RecordingADecision(FindingsTest):
|
||||
def test_appends_the_entry_to_the_descriptions_decisions(self) -> None:
|
||||
code, out, err, fake = self.run_with(["ABC-12", "--record-decision", "Imports retry three times"], "2026-11-18, the human's answer. Valid while the client's API rate-limits.\n")
|
||||
|
||||
Reference in New Issue
Block a user