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

Method parse_multipart

tests/test_formparser.py:434–436  ·  view source on GitHub ↗
(stream, boundary, content_length)

Source from the content-addressed store, hash-verified

432
433 def test_failures(self):
434 def parse_multipart(stream, boundary, content_length):
435 parser = formparser.MultiPartParser(content_length)
436 return parser.parse(stream, boundary, content_length)
437
438 data = b"--foo\r\n\r\nHello World\r\n--foo--"
439 pytest.raises(ValueError, parse_multipart, io.BytesIO(data), b"foo", len(data))

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected