Unfortunately I overlooked the fact, that the tests made network calls. By changing the mocking from Response.raise_for_status to requests.request we now prevent that.
Downside to this are slightly wrong tests, as we now don't reach the invocation of raise_for_status.
Unfortunately I overlooked the fact, that the tests made network calls. By changing the mocking from
Response.raise_for_status
torequests.request
we now prevent that.Downside to this are slightly wrong tests, as we now don't reach the invocation of
raise_for_status
.