Jamie Lennox
Jamie Lennox
I'm having problems setting cookies using the requests_mock header= option. A cookie makes it as far as the requests.Response object, but does not reach the requests.Session I used to make...
If you pass a generator to data in requests it will iterate over the generator and include that info into the request. This has the result of draining the provided...
We have a json() helper on last_request, however for form encoded a=b&c=d data and multipart form encoded data we don't have a helper. Whilst there are less useful with APIs...
I am trying to use django-rest-framework's RequestsClient with requests_mock. This has taken me down quite the rat hole. After reading a ton of the requests_mock code, I've concluded that the...
NoMockAddress needs to be called with the request in it. If for whatever reason a user wanted to emulate that they couldn't easily so we can provide a reasonably easy...
Pytest would read requests_mock_case_sensitive from pytest.ini but default back to False if not found. We should determine if this value is actually unset, and if so fall back to the...
Iterate over any iterators passed to the request. This will have been done by the request process and will handle a very small corner case where an application expects a...
Retrieve this from pbr and make it available to users. Change-Id: I91d148c957d53319683449e0464af322f90d3d31
Add a form and multipart form encoding helper. This will make it easier to deal with this style of request.
When a callback is invoked that calls requests the previous called mock is run. When this is supposed to be a real_http request the NoMockAddress is thrown but it can't...