(app, client)
| 1422 | |
| 1423 | |
| 1424 | def test_static_files(app, client): |
| 1425 | rv = client.get("/static/index.html") |
| 1426 | assert rv.status_code == 200 |
| 1427 | assert rv.data.strip() == b"<h1>Hello World!</h1>" |
| 1428 | with app.test_request_context(): |
| 1429 | assert flask.url_for("static", filename="index.html") == "/static/index.html" |
| 1430 | rv.close() |
| 1431 | |
| 1432 | |
| 1433 | def test_static_url_path(): |
nothing calls this directly
no test coverage detected