From 5e17a009dc42da41ba4dd7e6d6eb4cfb3b78cb6b Mon Sep 17 00:00:00 2001 From: Samah Keshiro Date: Thu, 12 Nov 2026 18:18:53 -0500 Subject: [PATCH] Controlled failing test: wrong expected total (demo for #24) --- pricing/test_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pricing/test_app.py b/pricing/test_app.py index 40b4207..ba09fbb 100644 --- a/pricing/test_app.py +++ b/pricing/test_app.py @@ -7,7 +7,7 @@ class PricingTests(unittest.TestCase): self.client = app.test_client() def test_price(self): - self.assertEqual(total_price(3), 30) + self.assertEqual(total_price(3), 31) response = self.client.get("/price?quantity=3") self.assertEqual(response.status_code, 200) self.assertEqual(response.json["total"], 30)