Skip to content

Commit

Permalink
Fix PoleEmploiAPIClientTest::test_offres
Browse files Browse the repository at this point in the history
The expected querystring was not representative of the call being by the
API client.
  • Loading branch information
francoisfreitag committed Jan 5, 2023
1 parent 6fe6734 commit 75a2175
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion itou/utils/apis/test_pole_emploi_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ def test_offres(self):
json={"resultats": pole_emploi_api_mocks.API_OFFRES},
)
assert self.api_client.offres(natureContrat="FT", range="0-1") == pole_emploi_api_mocks.API_OFFRES
respx.get("https://pe.fake/offresdemploi/v2/offres/search?range=100-140").respond(204)
respx.get("https://pe.fake/offresdemploi/v2/offres/search?typeContrat=&natureContrat=&range=100-140").respond(
204
)
assert self.api_client.offres(range="100-140") == []

@respx.mock
Expand Down

0 comments on commit 75a2175

Please sign in to comment.