MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / file_to_bytes_stream

Function file_to_bytes_stream

tests/response_test.py:23–26  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

21@pytest.mark.flaky(reruns=3, reruns_delay=2)
22async def test_multiple_requests():
23 async def file_to_bytes_stream(file_path):
24 with open(file_path, "rb") as f:
25 while chunk := f.read(1024):
26 yield chunk
27
28 resp = await client.post(
29 "https://httpbin.org/anything",

Callers 1

test_multiple_requestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected