Skip to content

Commit

Permalink
chore: mypy + coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Olegt0rr committed Feb 12, 2024
1 parent 8d6be2b commit b0e93c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ async def handler(request: web.Request) -> EventSourceResponse:
timeout_raised = True
raise

return sse
return sse # pragma: no cover

app = web.Application()
app.router.add_route("GET", "/", handler)
Expand All @@ -600,6 +600,6 @@ async def handler(request: web.Request) -> EventSourceResponse:
async with client.get("/") as resp:
assert resp.status == 200
await asyncio.sleep(0.5)
assert resp.connection.closed is bool(timeout)
assert resp.connection and resp.connection.closed is bool(timeout)

assert timeout_raised is bool(timeout)

0 comments on commit b0e93c5

Please sign in to comment.