The fetch function should return a blob response.
()
| 101 | |
| 102 | |
| 103 | async def test_fetch_blob(): |
| 104 | """ |
| 105 | The fetch function should return a blob response. |
| 106 | """ |
| 107 | response = await fetch("https://jsonplaceholder.typicode.com/todos/1") |
| 108 | assert response.ok |
| 109 | blob = await response.blob() |
| 110 | assert blob.size > 0 |
| 111 | assert blob.type in ["application/json", "application/json; charset=utf-8"] |
| 112 | |
| 113 | |
| 114 | async def test_fetch_blob_direct(): |