forked from orbit-oss/flask
prefer the url's scheme over the kwarg
tabs -> spaces add test add changelog
This commit is contained in:
parent
241673fd15
commit
a89bdb3395
3 changed files with 17 additions and 4 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue