misc: typo applications_ids -> application_ids
gitea/ants-hub/pipeline/head There was a failure building this commit Details

This commit is contained in:
Benjamin Dauvergne 2023-06-19 07:52:35 +02:00
parent 67e5c8578c
commit 6e6855e408
2 changed files with 6 additions and 2 deletions

View File

@ -389,7 +389,7 @@ class PredemandesView(View):
response = requests.get(
f'{url}searchApplicationIds',
headers={'x-hub-rdv-auth-token': auth_token},
params={'applications_ids': identifiant_predemande},
params={'application_ids': identifiant_predemande},
timeout=10,
)
response.raise_for_status()

View File

@ -368,7 +368,7 @@ def test_predemandes(db, django_app):
]
}
rdv_api_url = 'https://rendez-vous-api.france-identite.fr/api/searchApplicationIds'
responses.add(
mock_response = responses.add(
responses.GET,
rdv_api_url,
json=document,
@ -386,6 +386,10 @@ def test_predemandes(db, django_app):
'cancel_url': 'https://saint-didier/rdv/1/cancel/',
}
]
assert (
responses._default_mock.calls[0].request.url
== 'https://rendez-vous-api.france-identite.fr/api/searchApplicationIds?application_ids=xyz'
)
def test_rendez_vous_disponibles_full(django_app, db, freezer):