The fetch function should return a response with ok set to False for failed requests.
()
| 130 | |
| 131 | |
| 132 | async def test_fetch_response_not_ok(): |
| 133 | """ |
| 134 | The fetch function should return a response with ok set to False for |
| 135 | failed requests. |
| 136 | """ |
| 137 | response = await fetch("https://jsonplaceholder.typicode.com/todos/1000") |
| 138 | assert not response.ok |
| 139 | assert response.status == 404 |
| 140 | |
| 141 | |
| 142 | async def test_fetch_response_status(): |