deb-python-wsgi-intercept/wsgi_intercept/tests
Chris Dent 66e2d50000 Accept an empty string from a wsgi iterator
This is allowed by the pep but the code was written such that if it
received an empty string it would not get the rest of the iterator.
This change fixes it so only None will cause the stop.

With this change an unrelated test wsgi app which was returning an
empty string needed to be fixed to return a bytestring.

Fixes #46
2017-03-05 15:02:50 +00:00
..
README Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
__init__.py Add a global flag to strictly handle response headers 2016-09-27 10:26:28 +01:00
install.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_http_client.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_httplib2.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_interceptor.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_module_interceptor.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_requests.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_response_headers.py Accept an empty string from a wsgi iterator 2017-03-05 15:02:50 +00:00
test_urllib.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_urllib3.py Move tests from the test dir into wsgi_intercept/tests 2016-09-22 20:02:41 +01:00
test_wsgi_compliance.py Accept an empty string from a wsgi iterator 2017-03-05 15:02:50 +00:00
wsgi_app.py Accept an empty string from a wsgi iterator 2017-03-05 15:02:50 +00:00

README

If you wish to run the tests without those tests which speak to
the internet (there are a few that validate that the intercept
does not intercept), set the WSGI_INTERCEPT_SKIP_NETWORK environment
variable to "True". Any other value or no value will mean that
the network tests will run.