Skip to content
Myr

Coverage for test_static_path_deprecated and test_static_url_path (#1860)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by jphilipsen05 · committed by David Lord · parent d88c08e · Browse files · 1 file+19 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+19 added−0 removed

  • tests:+19 added−0 removed

1 file+19 added−0 removed

modified:tests/test_basic.py+19 added
1114 unmodified lines
1115 '/static/index.html'1116 rv.close()111711181119def test_static_path_deprecated():1120 with pytest.deprecated_call():1121 app = flask.Flask(__name__, static_path='/foo')1122 app.testing = True1123 rv = app.test_client().get('/foo/index.html')1124 assert rv.status_code == 2001125 with app.test_request_context():1126 assert flask.url_for('static', filename='index.html') == '/foo/index.html'112711281129def test_static_url_path():1130 app = flask.Flask(__name__, static_url_path='/foo')1131 app.testing = True1132 rv = app.test_client().get('/foo/index.html')1133 assert rv.status_code == 2001134 with app.test_request_context():1135 assert flask.url_for('static', filename='index.html') == '/foo/index.html'113611371138def test_none_response():1139 app = flask.Flask(__name__)1140 app.testing = True1141
508 unmodified lines