Fix affichage jours d'essai

This commit is contained in:
Colin Maudry
2026-06-25 22:41:48 +02:00
parent 5bd7029066
commit e229caf320
3 changed files with 10 additions and 15 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ def test_trial_days_parses_and_caches(monkeypatch):
def fake_get_plan(handle):
calls.append(handle)
return {"trial_interval": "2d"}
return {"trial_interval_unit": "days", "trial_interval_length": 2}
monkeypatch.setattr(client, "get_plan", fake_get_plan)
assert plans.trial_days("simple") == 2
@@ -37,7 +37,7 @@ def test_trial_days_none_on_error(monkeypatch):
def test_trial_days_none_when_no_trial(monkeypatch):
monkeypatch.setattr(client, "get_plan", lambda h: {"trial_interval": None})
monkeypatch.setattr(client, "get_plan", lambda h: {})
assert plans.trial_days("simple") is None