remove deprecated Flask.static_path

This commit is contained in:
David Lord 2017-06-26 07:42:17 -07:00
parent 9491bf8695
commit d63c2bc417
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 30 additions and 31 deletions

View file

@ -1353,19 +1353,6 @@ def test_static_files(app, client):
rv.close()
def test_static_path_deprecated(recwarn):
app = flask.Flask(__name__, static_path='/foo')
recwarn.pop(DeprecationWarning)
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'
def test_static_url_path():
app = flask.Flask(__name__, static_url_path='/foo')
app.testing = True