Corrige les liens mobiles et invalide les previsions contaminees
This commit is contained in:
@@ -344,7 +344,7 @@ def test_forecast_is_ignored_until_it_beats_the_naive_rule(store):
|
||||
)
|
||||
out = forecast.outlook("Gazole")
|
||||
assert out["status"] == "insufficient"
|
||||
assert "règle naïve" in out["reason"]
|
||||
assert "fuite de cible" in out["reason"]
|
||||
storage.save_forecast(
|
||||
dict(
|
||||
fuel="Gazole",
|
||||
@@ -359,7 +359,7 @@ def test_forecast_is_ignored_until_it_beats_the_naive_rule(store):
|
||||
)
|
||||
)
|
||||
out = forecast.outlook("Gazole")
|
||||
assert out["status"] == "ok" and out["direction"] == "down" and out["model"] == "test-v2"
|
||||
assert out["status"] == "insufficient" # même un ancien score élevé est invalidé
|
||||
|
||||
|
||||
def test_absent_model_is_declared_absent(store):
|
||||
@@ -367,7 +367,7 @@ def test_absent_model_is_declared_absent(store):
|
||||
|
||||
out = forecast.outlook("Gazole")
|
||||
assert out["status"] == "insufficient"
|
||||
assert "pas encore entraîné" in out["reason"]
|
||||
assert "Modèle expérimental — non validé" in out["reason"]
|
||||
|
||||
|
||||
def test_local_rank_never_triggers_a_full_tank(store):
|
||||
|
||||
Reference in New Issue
Block a user