forked from orbit-oss/flask
Eliminate some resource warnings
This commit is contained in:
parent
293eb583f6
commit
6c359e0f53
3 changed files with 26 additions and 19 deletions
|
|
@ -1123,6 +1123,8 @@ def test_static_path_deprecated(recwarn):
|
|||
app.testing = True
|
||||
rv = app.test_client().get('/foo/index.html')
|
||||
assert rv.status_code == 200
|
||||
rv.close()
|
||||
|
||||
with app.test_request_context():
|
||||
assert flask.url_for('static', filename='index.html') == '/foo/index.html'
|
||||
|
||||
|
|
@ -1132,6 +1134,8 @@ def test_static_url_path():
|
|||
app.testing = True
|
||||
rv = app.test_client().get('/foo/index.html')
|
||||
assert rv.status_code == 200
|
||||
rv.close()
|
||||
|
||||
with app.test_request_context():
|
||||
assert flask.url_for('static', filename='index.html') == '/foo/index.html'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue