test_ship_cc: a product body one short of the Manufacturer slot is refused, not an IndexError

Kills mutant short-body-reads-past-end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-19 00:25:31 +02:00
commit 8a6816ed3e

View file

@ -237,7 +237,8 @@ class ProductMakerTests(ShipFileCase):
def test_a_product_with_no_manufacturer_is_refused_naming_no_input(self):
canary = "canary-product-name"
for body in ([None, canary, "Reliable."], [None, canary, None, None, None], [None, canary, None, None, ""],
for body in ([None, canary, "Reliable."], [None, canary, None, None], [None, canary, None, None, None],
[None, canary, None, None, ""],
[None, canary, None, None, 7]):
with self.subTest(body=body):
self.setUp()