MCPcopy Create free account
hub / github.com/pallets/quart / test_formparser_max_num_parts

Function test_formparser_max_num_parts

tests/test_formparser.py:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25async def test_formparser_max_num_parts() -> None:
26 parser = FormDataParser(max_form_parts=1)
27 body = Body(None, None)
28 body.set_result(b"param1=data1&param2=data2&param3=data3")
29
30 with pytest.raises(RequestEntityTooLarge):
31 await parser.parse(body, "application/x-url-encoded", None)

Callers

nothing calls this directly

Calls 4

set_resultMethod · 0.95
parseMethod · 0.95
FormDataParserClass · 0.90
BodyClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…