Files
suivi_produit/backend/app/tests/test_pricing.py
2026-01-18 12:23:01 +01:00

14 lines
281 B
Python

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"