Controlled failing test: wrong expected total (demo for #24)
Scrap-Web/pipeline/head There was a failure building this commit
Scrap-Web/pipeline/head There was a failure building this commit
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user