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

Function test_fetch_bytearray_direct

core/tests/python/tests/test_fetch.py:71–77  ·  view source on GitHub ↗

The fetch function should support direct method chaining for bytearray.

()

Source from the content-addressed store, hash-verified

69
70
71async def test_fetch_bytearray_direct():
72 """
73 The fetch function should support direct method chaining for bytearray.
74 """
75 data = await fetch("https://jsonplaceholder.typicode.com/todos/1").bytearray()
76 assert isinstance(data, bytearray)
77 assert b"delectus aut autem" in data
78
79
80async def test_fetch_array_buffer():

Callers

nothing calls this directly

Calls 2

fetchFunction · 0.90
bytearrayMethod · 0.45

Tested by

no test coverage detected