HTTPretty
HTTPretty copied to clipboard
Intercept HTTP requests at the Python socket level. Fakes the whole socket module
[The test checks that we can handle URLs with paths starting with //](https://github.com/gabrielfalcao/HTTPretty/blob/7804c533ec344eeefaacef5340fe479858f7154b/tests/functional/test_requests.py#L949). However the [http.server.BaseHTTPRequestHandler.parse_request() now replaces '//' with '/'](https://github.com/python/cpython/pull/93879) so the test should be updated to allow also...
I am using `moto` a python library to mock aws services. On my local everything works fine but on teamcity I get the error ``` httpretty.errors.UnmockedError: Failed to socket.setblocking because...
Hello, there have been no commits to master for almost 9 months (since early November) and there have been some pretty [big](https://github.com/gabrielfalcao/HTTPretty/issues/35) outstanding issues that have had no attention. I...
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Other Branches These updates are pending. To force PRs open, click the checkbox...
Per [the docs](https://httpretty.readthedocs.io/en/latest/api.html#register-uri) passing a callback as `body` with `register_uri` causes: ``` (function) exceptionCallback: (request: Unknown, uri: Unknown, headers: Unknown) -> NoReturn Argument of type "(request: Unknown, uri: Unknown, headers:...
On building my packages I'm using `sphinx-build` command with `-n` switch which shows warmings about missing references. These are not critical issues. Here is the output with warnings: ```console +...
pytest is for me and to be honest I know that something is missing in my build env but I cannot figure out which one module(s) I need to install...
Provide a default value for test parameters provided by decorators in order to prevent pytest from recognizing them as fixtures. This is the smaller change needed to run the complete...
Since the lowest supported version of Python has included unittest.mock for a long while, let's switch to it everywhere, and drop the now unneeded tests.compat module.
Fixes this issue: ``` if isinstance(source_address, tuple) and len(source_address) == 2: > source_address[1] = int(source_address[1]) E TypeError: 'tuple' object does not support item assignment ``` I love this library! I'm...