Controlled failing test: wrong expected total (demo for #24)
Scrap-Web/pipeline/head There was a failure building this commit

This commit is contained in:
2026-11-12 18:18:53 -05:00
parent 7e76950690
commit 5e17a009dc
+1 -1
View File
@@ -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)