From 6b2313d848dc48d4f7c82cb418b3926b239892ef Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 18 Nov 2026 18:21:15 +0100 Subject: [PATCH] Test that the prompt lists each label of the item --- bin/do_epic/test_split.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/do_epic/test_split.py b/bin/do_epic/test_split.py index fe27ae81..e88a2cc6 100644 --- a/bin/do_epic/test_split.py +++ b/bin/do_epic/test_split.py @@ -131,6 +131,13 @@ class Split_(unittest.TestCase): self.assertTrue(prompt.endswith("\nLabels: none\n\n(no description)\n")) self.assertNotIn("--add-dir", claude.calls[0][0]) + def test_lists_each_label_of_the_item_in_the_prompt(self) -> None: + key = self.store.file("ABC-12", "Two labels.", "Why.", ("api", "urgent")) + assert isinstance(key, str) + claude = says(TWO) + split(self.store, next(issue for issue in self.issues() if issue.key == key), False, RULE, "Swedish", (), RUNG, claude, "/rules") + self.assertIn("\nLabels: api, urgent\n", claude.calls[0][2]) + def test_asks_a_persons_issue_for_a_comment(self) -> None: claude = says(TWO) self.run_split(claude, by_person=True)