prefer the url's scheme over the kwarg

tabs -> spaces
add test
add changelog
This commit is contained in:
David Lord 2017-07-29 13:03:08 -07:00
parent 241673fd15
commit a89bdb3395
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 17 additions and 4 deletions

View file

@ -104,6 +104,14 @@ def test_specify_url_scheme(app, client):
assert rv.data == b'https://localhost/'
def test_path_is_url(app):
eb = make_test_environ_builder(app, 'https://example.com/')
assert eb.url_scheme == 'https'
assert eb.host == 'example.com'
assert eb.script_root == ''
assert eb.path == '/'
def test_blueprint_with_subdomain(app, client):
app.config['SERVER_NAME'] = 'example.com:1234'
app.config['APPLICATION_ROOT'] = '/foo'