Compare commits

..

20 Commits

Author SHA1 Message Date
Nicolas Roche 37fcc2d65a toulouse-maelis: [functests] adding tests on capacities (#77634)
gitea/passerelle/pipeline/head This commit looks good Details
2023-06-23 15:15:56 +02:00
Nicolas Roche 1257eea8d2 toulouse-maelis: [functests] update invoice test on extrasco (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche f5dc0f4fb2 toulouse-maelis: [functests] update loisirs basket tests (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 3946028e53 toulouse-maelis: [functests] include ban zipcode into test (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 998e1c1208 toulouse-maelis: [functests] add subscriptions out from Toulouse (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche aa99a0d826 toulouse-maelis: [functests] re-enabling tests on extra-sco (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche e2047aa318 toulouse-maelis: [functests] re-enabling tests on loisirs (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 6546c7ac63 toulouse-maelis: [functests] add test for adultes on perisco (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 2083b70610 toulouse-maelis: [functests] re-enable test on pericso (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche a15c80765b toulouse-maelis: [functests] improve tests on scolaire (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche bcbe12679e toulouse-maelis: [functests] re-enabling tests on ape (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche ae5681b0e7 toulouse-maelis: [functests] flagCom correction (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 03cbdf578f toulouse-maelis: [functests] locate test family into Toulouse (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche e873bfaaa8 toulouse-maelis: [functests] update referentials (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 59989d562b toulouse-maelis: [functests] rename test families (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche aa250342da toulouse-maelis: [functests] complete tests on school subscription (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 59955c60db toulouse-maelis: [functests] add visa date to supplied documents (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche 72b3cc8a87 toulouse-maelis: [tools] correct tools (#77634) 2023-06-23 15:15:56 +02:00
Nicolas Roche ea1c2b34bb toulouse-maelis: [tools] set quantity on booking (#77634) 2023-06-23 15:15:56 +02:00
Lauréline Guérin 95ba4d5f0e
api_particulier: add an message in known_errors (#78942)
gitea/passerelle/pipeline/head This commit looks good Details
2023-06-23 10:42:09 +02:00
2 changed files with 15 additions and 1 deletions

View File

@ -17,8 +17,9 @@ KNOWN_ERRORS = {
'Pas de droit sur la période demandée pour la prestation sélectionnée et le bénéficiaire choisi',
'Pas de droit sur la période demandée pour la prestation sélectionnée.',
"Votre quotient familial (Qf) sur cette période est non disponible. Pour plus d'information, contactez-nous.",
# API particulier error message not from the source above
# API particulier error messages not from the source above
'Les paramètres fournis sont incorrects ou ne correspondent pas à un avis',
"L'identifiant indiqué n'existe pas, n'est pas connu ou ne comporte aucune information pour cet appel.",
},
400: {
'Absence de code confidentiel. Le document ne peut être édité.',

View File

@ -147,6 +147,18 @@ def api_particulier_error_not_found_deregistrated(url, request):
)
@urlmatch(netloc=r'^particulier.*\.api\.gouv\.fr$')
def api_particulier_error_not_found_identifier(url, request):
return response(
404,
{
'error': 'not_found',
'message': "L'identifiant indiqué n'existe pas, n'est pas connu ou ne comporte aucune information pour cet appel.",
},
request=request,
)
@pytest.fixture
def mock_api_particulier():
with HTTMock(
@ -383,6 +395,7 @@ def test_detail_page(app, resource, admin_user):
(api_particulier_error_not_json, True),
(api_particulier_error_not_found_caf, False),
(api_particulier_error_not_found_deregistrated, False),
(api_particulier_error_not_found_identifier, False),
],
)
def test_api_particulier_dont_log_not_found(app, resource, mock, should_log):