move and update flake8 config
This commit is contained in:
parent
8bfc0581e7
commit
99b34f7148
6 changed files with 33 additions and 35 deletions
|
|
@ -1472,11 +1472,11 @@ def test_static_route_with_host_matching():
|
|||
rv = flask.url_for("static", filename="index.html", _external=True)
|
||||
assert rv == "http://example.com/static/index.html"
|
||||
# Providing static_host without host_matching=True should error.
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(AssertionError):
|
||||
flask.Flask(__name__, static_host="example.com")
|
||||
# Providing host_matching=True with static_folder
|
||||
# but without static_host should error.
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(AssertionError):
|
||||
flask.Flask(__name__, host_matching=True)
|
||||
# Providing host_matching=True without static_host
|
||||
# but with static_folder=None should not error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue