move url matching after opening session

This commit is contained in:
David Lord 2019-06-13 12:40:01 -07:00
parent 1ff98a2d21
commit c65863912b
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 26 additions and 17 deletions

View file

@ -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/"