Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
def
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
50
def
test_invalid_formdata_params() -> None:
Callers
nothing calls this directly
Calls
2
add_field
Method · 0.95
FormData
Class · 0.90
Tested by
no test coverage detected