()
| 1414 | |
| 1415 | |
| 1416 | def test_static_url_path_with_ending_slash(): |
| 1417 | app = flask.Flask(__name__, static_url_path="/foo/") |
| 1418 | app.testing = True |
| 1419 | rv = app.test_client().get("/foo/index.html") |
| 1420 | assert rv.status_code == 200 |
| 1421 | rv.close() |
| 1422 | |
| 1423 | with app.test_request_context(): |
| 1424 | assert flask.url_for("static", filename="index.html") == "/foo/index.html" |
| 1425 | |
| 1426 | |
| 1427 | def test_static_url_empty_path(app): |
nothing calls this directly
no test coverage detected