MCPcopy
hub / github.com/pallets/werkzeug / test_path

Function test_path

tests/test_send_file.py:21–27  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

19
20@pytest.mark.parametrize("path", [html_path, str(html_path)])
21def 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
30def test_x_sendfile():

Callers

nothing calls this directly

Calls 2

send_fileFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected