Kill the surviving mutants of the shipping sentence
CI / tests (pull_request) Failing after 5m1s

This commit is contained in:
2026-11-19 02:28:36 +01:00
parent b845d80ac7
commit 36c0ed9bfa
2 changed files with 17 additions and 4 deletions
+4
View File
@@ -302,6 +302,10 @@ class TheFirstPrompt(unittest.TestCase):
)
self.assertEqual(chunk_prompt.task(issue("ABC-20"), "ABC-12", "/code/api", pathlib.Path("/b/do-epic"), "Swedish", "Ship it so."), f"Work the Jira issue ABC-20 of the epic ABC-12 as one chunk, in the checkout /code/api, on the branch ABC-20. {told} Ship it so. Its summary: Do ABC-20")
def test_a_chunk_without_a_repo_has_no_shipping_sentence(self) -> None:
self.assertEqual(chunk_prompt.task(issue("ABC-20"), "ABC-12", None, pathlib.Path("/b/do-epic"), "Swedish", "").count(" "), 0)
self.assertTrue(chunk_prompt.task(issue("ABC-20"), "ABC-12", None, pathlib.Path("/b/do-epic"), "Swedish", "").endswith("Swedish, the epic's language. Its summary: Do ABC-20"))
def test_a_repo_with_a_plan_file_ships_the_chunk_with_a_bullet_in_its_changelog(self) -> None:
config = settings.ProjectConfig("api", pathlib.Path("/c/api"), pathlib.Path("/code/api"), {"changelog": pathlib.Path("/code/api/CHANGELOG.md")})
self.assertEqual(chunk_prompt.shipping(config), "The issue is no item of the repo's plan, so give `chunk-pr merge` no `--finish`. Where the repo publishes something others consume, ship the change with one bullet for its users under `## Unreleased` in /code/api/CHANGELOG.md, added in the branch; otherwise write none.")