diff --git a/app/service/formatters/nom_complet.py b/app/service/formatters/nom_complet.py index 57a49812..6aa806e4 100644 --- a/app/service/formatters/nom_complet.py +++ b/app/service/formatters/nom_complet.py @@ -20,7 +20,7 @@ def format_nom_complet( else: denomination = " ".join( filter( - None, + lambda x: x and x.upper() != "SUPPRESSION DU NOM COMMERCIAL", [ denomination_usuelle_1, denomination_usuelle_2, diff --git a/app/tests/e2e_tests/test_api.py b/app/tests/e2e_tests/test_api.py index f9dd2431..178eb902 100755 --- a/app/tests/e2e_tests/test_api.py +++ b/app/tests/e2e_tests/test_api.py @@ -133,7 +133,7 @@ def test_organisme_formation(api_response_tester): api_response_tester.test_max_number_of_results(path, 0) path = "search?q=196716856" api_response_tester.test_field_value(path, 0, "complements.est_qualiopi", True) - path = "search?q=788945368" + path = "search?q=552120222" api_response_tester.test_field_value(path, 0, "complements.est_qualiopi", False) api_response_tester.test_field_value( path, 0, "complements.est_organisme_formation", True @@ -435,7 +435,7 @@ def test_est_organisme_formation(api_response_tester): api_response_tester.test_max_number_of_results(path, 0) path = "search?q=196716856" api_response_tester.test_field_value(path, 0, "complements.est_qualiopi", True) - path = "search?q=788945368" + path = "search?q=552120222" api_response_tester.test_field_value(path, 0, "complements.est_qualiopi", False) api_response_tester.test_field_value( path, 0, "complements.est_organisme_formation", True