MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_invalid_formdata_payload

Function test_invalid_formdata_payload

tests/test_formdata.py:43–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_invalid_formdata_payload() -> None:
44 form = FormData()
45 form.add_field("test", object(), filename="test.txt")
46 with pytest.raises(TypeError):
47 form()
48
49
50def test_invalid_formdata_params() -> None:

Callers

nothing calls this directly

Calls 2

add_fieldMethod · 0.95
FormDataClass · 0.90

Tested by

no test coverage detected