()
| 1403 | |
| 1404 | |
| 1405 | def test_static_url_path(): |
| 1406 | app = flask.Flask(__name__, static_url_path="/foo") |
| 1407 | app.testing = True |
| 1408 | rv = app.test_client().get("/foo/index.html") |
| 1409 | assert rv.status_code == 200 |
| 1410 | rv.close() |
| 1411 | |
| 1412 | with app.test_request_context(): |
| 1413 | assert flask.url_for("static", filename="index.html") == "/foo/index.html" |
| 1414 | |
| 1415 | |
| 1416 | def test_static_url_path_with_ending_slash(): |
nothing calls this directly
no test coverage detected