From b3331bd8868e7eb00f232f433e54b6d8bedbce33 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 21 May 2024 20:24:16 +0200 Subject: [PATCH] Adapte test unitaire pour nouveau search_etuds_infos_from_exp. --- tests/unit/test_etudiants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_etudiants.py b/tests/unit/test_etudiants.py index d319360f6..aa0a6d05c 100644 --- a/tests/unit/test_etudiants.py +++ b/tests/unit/test_etudiants.py @@ -400,10 +400,10 @@ def test_import_etuds_xlsx(test_client): # Test de search_etud_in_dept etuds = sco_find_etud.search_etuds_infos_from_exp("NOM10") assert len(etuds) == 1 - assert etuds[0]["code_ine"] == "ine10" + assert etuds[0].code_ine == "ine10" etuds = sco_find_etud.search_etuds_infos_from_exp("NOM") assert len(etuds) > 1 - assert all(e["nom"].startswith("NOM") for e in etuds) + assert all(e.nom.startswith("NOM") for e in etuds) etuds = sco_find_etud.search_etuds_infos_from_exp("1000010") assert len(etuds) == 1 - assert etuds[0]["code_ine"] == "ine10" + assert etuds[0].code_ine == "ine10"