HTTPretty icon indicating copy to clipboard operation
HTTPretty copied to clipboard

Intercept HTTP requests at the Python socket level. Fakes the whole socket module

Results 123 HTTPretty issues
Sort by recently updated
recently updated
newest added

Network calls from [geventhttpclient](https://github.com/gwik/geventhttpclient) which use native gevent API are not intercepted by HTTPretty

```console [tkloczko@barrel HTTPretty-1.1.4]$ grep -rw nose development.txt:nose-randomly>=1.2.6 development.txt:nose>=1.3.7 httpretty/core.py: example usage with `nosetests `_ setup.py:tests_requires = ['nose', 'sure', 'coverage', 'mock;python_version

Decorating a Django `TestCase` with a *call* to `httpretty.activate` (e.g. with `allow_net_connect=False`) causes the Django test runner to not find the test case. I couldn't find any HTTPretty unit tests...

feature request
bug

This PR is an attempt to reproduce bug #399

In my understanding and opinion the attached file shows a bug. What do I do? extract and run the file What happens? - An exception "we should never get here"...

bug
needs-tests
needs-pr

Otherwise test_enable_disable_httpretty() will fail because NoneType is not callable.

Hi, Great project found it very useful do you have any examples though for BASIC auth tests for pytest so that I can use the simplest pattern. Might be worth...

feature request

implement context manager as per https://github.com/python/cpython/blob/master/Lib/socket.py#L236:L241

I have a package I need to test on Python 3.4. I'm fine using the older version of `httpretty` for this, but because the `python_requires` was not set precisely for...