()
| 1431 | |
| 1432 | |
| 1433 | def test_static_url_path(): |
| 1434 | app = flask.Flask(__name__, static_url_path="/foo") |
| 1435 | app.testing = True |
| 1436 | rv = app.test_client().get("/foo/index.html") |
| 1437 | assert rv.status_code == 200 |
| 1438 | rv.close() |
| 1439 | |
| 1440 | with app.test_request_context(): |
| 1441 | assert flask.url_for("static", filename="index.html") == "/foo/index.html" |
| 1442 | |
| 1443 | |
| 1444 | def test_static_url_path_with_ending_slash(): |
nothing calls this directly
no test coverage detected