forked from orbit-oss/flask
move url matching after opening session
This commit is contained in:
parent
1ff98a2d21
commit
c65863912b
4 changed files with 26 additions and 17 deletions
|
|
@ -154,6 +154,9 @@ def test_blueprint_with_subdomain():
|
|||
ctx = app.test_request_context("/", subdomain="xxx")
|
||||
assert ctx.request.url == "http://xxx.example.com:1234/foo/"
|
||||
|
||||
with ctx:
|
||||
assert ctx.request.blueprint == bp.name
|
||||
|
||||
rv = client.get("/", subdomain="xxx")
|
||||
assert rv.data == b"http://xxx.example.com:1234/foo/"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue