pnuckowski/aioresponses

`repeat` option in get(), post(), etc. also accept int

markuspinter opened this issue · 0 comments

Hi!
I just played around with aioresponse a bit and recognized something:
A nice feature would be to make a response repeatable for a given amount of time, e.g.

mock_aioresponse.get(<url>, status=401, body=<error_response>, repeat=3)
mock_aioresponse.get(<url>, status=200, body=<success_response>)

so one doesn't need to copy paste the same call 3 times and then queue another one.

Thank you in advance!