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

Function test_from_directory_not_found

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

Source from the content-addressed store, hash-verified

186
187@pytest.mark.parametrize("path", ["../res/test.txt", "nothing.txt", "null\x00.txt"])
188def test_from_directory_not_found(path):
189 with pytest.raises(NotFound):
190 send_from_directory(res_path, path, environ)
191
192
193def test_root_path(tmp_path):

Callers

nothing calls this directly

Calls 1

send_from_directoryFunction · 0.90

Tested by

no test coverage detected