httptest icon indicating copy to clipboard operation
httptest copied to clipboard

how to test for sequence of responses

Open maelle opened this issue 4 years ago • 2 comments

e.g. when the API returns 502, 502, 200.

Suggestion: making httptest able to loop through mockfile if they are named

  • filename-corresponding-to-the-request-1
  • filename-corresponding-to-the-request-2
  • filename-corresponding-to-the-request-3
  • ...

maelle avatar Nov 12 '20 17:11 maelle

I’ve been thinking (though haven’t yet found a satisfactory way) of doing the same in dittodb. If I do come up with something I’ll mention it here since at least some of that machinery should be similar, if not basically the same.

jonkeane avatar Nov 27 '20 14:11 jonkeane

I wonder where and how one would store the index of the request (this is the first request for this request, the second one etc).

maelle avatar Nov 27 '20 14:11 maelle