MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_fetch_blob_direct

Function test_fetch_blob_direct

core/tests/python/tests/test_fetch.py:114–120  ·  view source on GitHub ↗

The fetch function should support direct method chaining for blob.

()

Source from the content-addressed store, hash-verified

112
113
114async def test_fetch_blob_direct():
115 """
116 The fetch function should support direct method chaining for blob.
117 """
118 blob = await fetch("https://jsonplaceholder.typicode.com/todos/1").blob()
119 assert blob.size > 0
120 assert blob.type in ["application/json", "application/json; charset=utf-8"]
121
122
123async def test_fetch_response_ok():

Callers

nothing calls this directly

Calls 2

fetchFunction · 0.90
blobMethod · 0.45

Tested by

no test coverage detected