Controlled failure: add instead of multiply in total_price (refs #14)
vpn-dns-gateway/pipeline/pr-main There was a failure building this commit
vpn-dns-gateway/pipeline/pr-main There was a failure building this commit
Deliberately breaks the pricing calculation so the Jenkins Test stage fails (10 + 3 = 13, expected 30) and the required Gitea check blocks merging PR #15. The next commit restores multiplication. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
def total_price(unit_price, quantity):
|
def total_price(unit_price, quantity):
|
||||||
if quantity < 1:
|
if quantity < 1:
|
||||||
raise ValueError("Quantity must be positive")
|
raise ValueError("Quantity must be positive")
|
||||||
return unit_price * quantity
|
return unit_price + quantity
|
||||||
|
|||||||
Reference in New Issue
Block a user