Add pricing checks and controlled defect for issue #8
startup-product-ci/pipeline/pr-main There was a failure building this commit
startup-product-ci/pipeline/pr-main There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
def total_price(unit_price, quantity):
|
||||
if quantity < 1:
|
||||
raise ValueError("Quantity must be positive")
|
||||
return unit_price + quantity
|
||||
Reference in New Issue
Block a user