APPLICATION_ROOT defaults to '/'

This commit is contained in:
David Lord 2017-05-28 14:08:53 -07:00
parent 60feecc26c
commit 4a53840df0
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 9 additions and 6 deletions

View file

@ -34,13 +34,13 @@ def make_test_environ_builder(
if base_url is None:
http_host = app.config.get('SERVER_NAME') or 'localhost'
app_root = app.config.get('APPLICATION_ROOT') or '/'
app_root = app.config['APPLICATION_ROOT']
if subdomain:
http_host = '{0}.{1}'.format(subdomain, http_host)
if url_scheme is None:
url_scheme = app.config.get('PREFERRED_URL_SCHEME') or 'http'
url_scheme = app.config['PREFERRED_URL_SCHEME']
url = url_parse(path)
base_url = '{0}://{1}/{2}'.format(