The fetch function should support direct method chaining for blob.
()
| 112 | |
| 113 | |
| 114 | async 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 | |
| 123 | async def test_fetch_response_ok(): |