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

Function test_fetch_text_direct

core/tests/python/tests/test_fetch.py:46–54  ·  view source on GitHub ↗

The fetch function should support direct method chaining for text.

()

Source from the content-addressed store, hash-verified

44
45
46async def test_fetch_text_direct():
47 """
48 The fetch function should support direct method chaining for text.
49 """
50 text = await fetch("https://jsonplaceholder.typicode.com/todos/1").text()
51 assert "delectus aut autem" in text
52 assert "completed" in text
53 assert "false" in text
54 assert "1" in text
55
56
57async def test_fetch_bytearray():

Callers

nothing calls this directly

Calls 2

fetchFunction · 0.90
textMethod · 0.45

Tested by

no test coverage detected