The fetch function should support direct method chaining for text.
()
| 44 | |
| 45 | |
| 46 | async 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 | |
| 57 | async def test_fetch_bytearray(): |