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

Function test_fetch_array_buffer_direct

core/tests/python/tests/test_fetch.py:94–100  ·  view source on GitHub ↗

The fetch function should support direct method chaining for arrayBuffer.

()

Source from the content-addressed store, hash-verified

92
93
94async def test_fetch_array_buffer_direct():
95 """
96 The fetch function should support direct method chaining for arrayBuffer.
97 """
98 data = await fetch("https://jsonplaceholder.typicode.com/todos/1").arrayBuffer()
99 bytes_ = bytes(data)
100 assert b"delectus aut autem" in bytes_
101
102
103async def test_fetch_blob():

Callers

nothing calls this directly

Calls 2

fetchFunction · 0.90
arrayBufferMethod · 0.45

Tested by

no test coverage detected