Go to file
Chris Dent d34e64f764 Don't use six when testing httplib
Otherwise monkeypatching get confused and will not work
and the tests will fail. An effort was made to use the
six http_client always (both in tests and the interceptor)
but this led to infinite recursion, so going for the lame
fix here.

The functionality has always worked (as long as six wasn't
involved) this is just getting things working in tests.
2016-06-29 13:49:21 -04:00
2016-03-18 14:22:21 +00:00
2016-06-29 13:49:21 -04:00
2012-10-02 07:04:33 -07:00
2015-08-12 13:44:44 +01:00
2016-01-27 09:11:34 +00:00
2015-08-12 12:01:41 +01:00
2014-07-19 14:06:56 +01:00
2016-03-18 14:29:47 +00:00
2014-08-06 10:44:02 +01:00
2016-03-21 16:22:27 +00:00

wsgi-intercept

travis

Documentation is available on Read The Docs.

What is it?

wsgi_intercept installs a WSGI application in place of a real host for testing while still preserving HTTP semantics. See the PyPI page page for more details. It works by intercepting the connection handling in http client libraries.

Supported Libraries

For Python 2.7 the following libraries are supported:

  • urllib2
  • httplib
  • httplib2
  • requests
  • urllib3

In Python 3:

  • urllib.request
  • http.client
  • httplib2
  • requests
  • urllib3

If you are using Python 2 and need support for a different HTTP client, require a version of wsgi_intercept<0.6.

Description
RETIRED, further work has moved to Debian project infrastructure
Readme 276 KiB
Languages
Python 98.6%
Makefile 1.4%