Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit b3331bd886 - Show all commits

View File

@ -400,10 +400,10 @@ def test_import_etuds_xlsx(test_client):
# Test de search_etud_in_dept # Test de search_etud_in_dept
etuds = sco_find_etud.search_etuds_infos_from_exp("NOM10") etuds = sco_find_etud.search_etuds_infos_from_exp("NOM10")
assert len(etuds) == 1 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") etuds = sco_find_etud.search_etuds_infos_from_exp("NOM")
assert len(etuds) > 1 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") etuds = sco_find_etud.search_etuds_infos_from_exp("1000010")
assert len(etuds) == 1 assert len(etuds) == 1
assert etuds[0]["code_ine"] == "ine10" assert etuds[0].code_ine == "ine10"