Test that the prompt lists each label of the item
CI / tests (pull_request) Successful in 3m4s

This commit is contained in:
2026-11-18 18:21:15 +01:00
parent aa369713fe
commit 6b2313d848
+7
View File
@@ -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)