-
I am trying to mock my HTTP requests using httpretty for [Twisted web client agent](https://twistedmatrix.com/documents/current/web/howto/client.html#issuing-requests) but every time i am getting a `C…
-
Typically a StackInABoxService is mapped to a URL such as `https://localhost//`; however, sometimes it might be helpful to hap the StackInABoxService to just the DNS, such as `https://` or `https://.l…
-
```py
INTERNALERROR> File "/usr/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/lib/python3.…
-
I m trying to implement httpretty to mock a https endpoint. I m getting this error.
```
File "util/requests_client.py", line 18, in http_do
verify=False
File "/usr/local/lib/python2.7/dist-pa…
-
I haven't found any place in the documentation where it is mentioned, that it is possible to globally disable network access:
```
HTTPretty.allow_net_connect = False
```
I also didn't find a g…
-
It fails on localhost, succeeds on travis (when redis is not available)
setting `OAUTH2_CACHE_TYPE='simple'` triggers other error
```
self =
def get_csrf(self):
"""
Returns…
-
I have seen mentions of unit tests in some issues like this one: https://github.com/slackapi/python-slack-sdk/issues/1052
But the documentation does not mention how we can write unit tests in our c…
-
Whilst this shouldn't apply all the time if i'm mocking my HTTP traffic then chances are I want all my HTTP traffic mocked.
There should be a way to tell HTTPretty that if you receive a call that is…
-
It would be great if there was support for monkey patching Python3's asyncio, gevent, and other similar libs as these are becoming more popular. Python3's asyncio should be doable if socketpair was al…
-
I'm trying to do a PUT request with an encrypted body and getting a decode error
``` python
UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 0: invalid continuation byte
```
and t…