(app, client)
| 1394 | |
| 1395 | |
| 1396 | def test_static_files(app, client): |
| 1397 | rv = client.get("/static/index.html") |
| 1398 | assert rv.status_code == 200 |
| 1399 | assert rv.data.strip() == b"<h1>Hello World!</h1>" |
| 1400 | with app.test_request_context(): |
| 1401 | assert flask.url_for("static", filename="index.html") == "/static/index.html" |
| 1402 | rv.close() |
| 1403 | |
| 1404 | |
| 1405 | def test_static_url_path(): |
nothing calls this directly
no test coverage detected