From 4a48bc5c31a867ff7aef9c05968eace21e50641e Mon Sep 17 00:00:00 2001 From: Anto59290 Date: Fri, 28 Feb 2025 15:00:15 +0100 Subject: [PATCH] Corriger un test flaky MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avant le commit précédent is_officiel était à True pour éviter le cas du prélévement réalisé par l'exploitant, on retrouve ici le comportement voulu. --- sv/tests/test_fichedetection_update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv/tests/test_fichedetection_update.py b/sv/tests/test_fichedetection_update.py index 8fec7d42..3957c84a 100644 --- a/sv/tests/test_fichedetection_update.py +++ b/sv/tests/test_fichedetection_update.py @@ -756,8 +756,8 @@ def test_update_multiple_prelevements( lieu1, lieu2 = LieuFactory.create_batch(2, fiche_detection=fiche_detection) PrelevementFactory(lieu=lieu1, is_officiel=True) PrelevementFactory(lieu=lieu2, is_officiel=True) - new_prelevement_1 = PrelevementFactory.build_with_some_related_objects_saved(lieu=lieu1, is_officiel=False) - new_prelevement_2 = PrelevementFactory.build_with_some_related_objects_saved(lieu=lieu2, is_officiel=False) + new_prelevement_1 = PrelevementFactory.build_with_some_related_objects_saved(lieu=lieu1, is_officiel=True) + new_prelevement_2 = PrelevementFactory.build_with_some_related_objects_saved(lieu=lieu2, is_officiel=True) page.goto(f"{live_server.url}{fiche_detection.get_update_url()}") for index, new_prelevement in enumerate([new_prelevement_1, new_prelevement_2]):