Commit 26d99301 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Vincent Pelletier

test.testWSGI: Populate more WSGI environ entries.

parent 9c3fc434
......@@ -1338,6 +1338,10 @@ class CaucaseTest(unittest.TestCase):
Non-standard shorthand for invoking the WSGI application.
"""
environ.setdefault('wsgi.errors', sys.stderr)
environ.setdefault('wsgi.url_scheme', 'http')
name, port = self._server_netloc.split(':')
environ.setdefault('SERVER_NAME', name)
environ.setdefault('SERVER_PORT', port)
start_response_list = []
body = list(application(
environ,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment