Compare commits
No commits in common. "ed538a881004b64c2424f55f91b9b654991fdc68" and "1a3284cb5588b2a334ed894ed5bd6f9cee3c3b21" have entirely different histories.
ed538a8810
...
1a3284cb55
@ -1,2 +0,0 @@
|
|||||||
def discount_price(price: float, percent: float) -> float:
|
|
||||||
return price - price * percent / 100
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
from src.tutorial.testing.shop.pricing import discount_price
|
|
||||||
|
|
||||||
|
|
||||||
def test_discount_price_reduces_price():
|
|
||||||
result = discount_price(100.0, 20.0)
|
|
||||||
assert result == 80
|
|
||||||
Loading…
x
Reference in New Issue
Block a user