MCPcopy
hub / github.com/encode/starlette / test_upload_file_repr

Function test_upload_file_repr

tests/test_datastructures.py:450–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448
449@pytest.mark.anyio
450async def test_upload_file_repr() -> None:
451 stream = io.BytesIO(b"data")
452 file = UploadFile(filename="file", file=stream, size=4)
453 assert repr(file) == "UploadFile(filename='file', size=4, headers=Headers({}))"
454
455
456@pytest.mark.anyio

Callers

nothing calls this directly

Calls 1

UploadFileClass · 0.90

Tested by

no test coverage detected