2016-12-18 08:50:49 |
Meet |
description |
Not able to use
`
with requests_mock.Mocker() as m:
m.head("https://google.com", timeout=15, status_code=404) |
Not able to use
with requests_mock.Mocker() as m:
m.head("https://google.com", timeout=15, status_code=404)
# and also
m.register_uri('HEAD', "https://google.com", timeout=15, status_code=404)
It throws:
TypeError: Too many arguments provided. Unexpected arguments timeout.
Is there any way to make mock the server to respond after a given amount of time? |
|