Format text
This commit is contained in:
parent
caac05b03a
commit
8fd151b23a
|
@ -114,7 +114,7 @@ def test_historique():
|
|||
debut_supervision = client.get(f"/sonde/{id_sonde}/historique")
|
||||
debut_supervision = debut_supervision.json()
|
||||
assert len(debut_supervision) == 1
|
||||
assert debut_supervision[0] == f"{data_ok['date']} test_historique absent ok"
|
||||
assert debut_supervision[0] == f"{data_ok['date']} test_historique absent -> ok"
|
||||
|
||||
data = testutils.probe_sample_body(
|
||||
channel_name="test_historique", channel_id=0, status="error"
|
||||
|
@ -124,7 +124,7 @@ def test_historique():
|
|||
|
||||
ok_erreur_supervision = client.get(f"/sonde/{id_sonde}/historique")
|
||||
ok_erreur_supervision = ok_erreur_supervision.json()
|
||||
assert ok_erreur_supervision[-1] == f"{data['date']} test_historique ok error"
|
||||
assert ok_erreur_supervision[-1] == f"{data['date']} test_historique ok -> error"
|
||||
|
||||
data = testutils.probe_sample_body(
|
||||
channel_name="test_historique", channel_id=0, status="error"
|
||||
|
@ -135,7 +135,7 @@ def test_historique():
|
|||
|
||||
perte_supervision = client.get(f"/sonde/{id_sonde}/historique")
|
||||
perte_supervision = perte_supervision.json()
|
||||
assert perte_supervision[-1] == f"{data['date']} test_historique error absent"
|
||||
assert perte_supervision[-1] == f"{data['date']} test_historique error -> absent"
|
||||
|
||||
# perte api et repise
|
||||
from papi.main import notifications
|
||||
|
|
Loading…
Reference in New Issue