(path)
| 19 | |
| 20 | @pytest.mark.parametrize("path", [html_path, str(html_path)]) |
| 21 | def test_path(path): |
| 22 | rv = send_file(path, environ) |
| 23 | assert rv.mimetype == "text/html" |
| 24 | assert rv.direct_passthrough |
| 25 | rv.direct_passthrough = False |
| 26 | assert rv.data == html_path.read_bytes() |
| 27 | rv.close() |
| 28 | |
| 29 | |
| 30 | def test_x_sendfile(): |