Answer security round 1: 0 🔴, 0 🟡 (0 misread); refuse a malformed epic key and a comment that starts with a dash
CI / tests (pull_request) Successful in 3m44s

This commit is contained in:
Lilleman
2026-11-20 19:44:52 +01:00
parent 72a4d346d7
commit 9f367e90ca
4 changed files with 9 additions and 2 deletions
+2
View File
@@ -1150,6 +1150,8 @@ class EpicBranch(unittest.TestCase):
checkout = self.epic()
self.assertEqual(step(["open-epic", "ABC-1", "Ship\nit"], checkout, checkout.config), Failure("give a title of one line"))
self.assertEqual(step(["open-epic", "ABC-1"], checkout, checkout.config), Failure(USAGE))
self.assertEqual(step(["open-epic", "abc/../1", "Ship it"], checkout, checkout.config), Failure("'abc/../1' is no epic's key, such as ABC-123"))
self.assertEqual(checkout.ran, [])
self.assertEqual(checkout.ran, [])