Go to file
Chris Dent b718c1d817 Deal with request's urllib3 being annoying about 'strict'
These changes are required to get tests to pass in python3.4 (and
presumably others).

This is entirely code from @sashahart, who had done the work earlier
to deal with with some Debian related issues uncovered by @thomasgoirand.

These changes will probably mean the debian packages will need to be
updated when the next version is released.
2014-11-09 17:41:42 +00:00
2014-05-20 16:59:15 -05:00
2014-07-29 13:51:23 -05:00
2012-10-02 07:04:33 -07:00
2014-08-06 10:44:02 +01:00
2014-08-06 10:44:02 +01:00
2014-08-06 10:44:02 +01:00
2014-07-19 14:06:56 +01:00
2014-08-06 10:44:02 +01:00
2014-07-29 13:51:23 -05:00

python3-wsgi-intercept

travis

Python3 port of the important bits of wsgi-intercept, now working for 2.6, 2.7, 3.3 and 3.4.

Documentation is available on Read The Docs.

What is it?

wsgi_intercept installs a WSGI application in place of a real URI for testing. See the PyPI page page for more details.

Modern Version

For the 2 and 3 version only some intercept functionality is provided, with a working implementation in Python 2 for:

  • urllib2
  • httplib
  • httplib2
  • requests

and in Python 3 for:

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

If you are using Python 2 and need support for a different HTTP client, require a version of wsgi_intercept<0.6. Another option to keep in mind is that interceptor code from earlier versions, such as the interceptor for mechanize ought to work when imported independently (see related conversation.

To Do

  • https support using http.client is only somewhat implemented: If intercepting an HTTPS domain, requests to other HTTPS domains fail.
Description
RETIRED, further work has moved to Debian project infrastructure
Readme 276 KiB
Languages
Python 98.6%
Makefile 1.4%