1er
This commit is contained in:
13
backend/app/tests/test_pricing.py
Normal file
13
backend/app/tests/test_pricing.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from backend.app.services.pricing import price_trend
|
||||
|
||||
|
||||
def test_price_trend_up():
|
||||
assert price_trend([100, 200]) == "up"
|
||||
|
||||
|
||||
def test_price_trend_stable():
|
||||
assert price_trend([100, 100]) == "stable"
|
||||
|
||||
|
||||
def test_price_trend_down():
|
||||
assert price_trend([300, 200]) == "down"
|
||||
Reference in New Issue
Block a user