Skip to content

Commit 2a90fec

Browse files
author
RJ Lopez
committed
chore: remove unnecessary pragma: no cover from mock_receive functions
1 parent e0a470f commit 2a90fec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/server/test_streamable_http_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def mock_send(message: Message):
119119
"headers": [(b"content-type", b"application/json")],
120120
}
121121

122-
async def mock_receive(): # pragma: no cover
122+
async def mock_receive():
123123
return {"type": "http.request", "body": b"", "more_body": False}
124124

125125
# Trigger session creation
@@ -178,7 +178,7 @@ async def mock_send(message: Message):
178178
"headers": [(b"content-type", b"application/json")],
179179
}
180180

181-
async def mock_receive(): # pragma: no cover
181+
async def mock_receive():
182182
return {"type": "http.request", "body": b"", "more_body": False}
183183

184184
# Trigger session creation
@@ -357,7 +357,7 @@ async def mock_send(message: Message):
357357
"headers": [(b"content-type", b"application/json")],
358358
}
359359

360-
async def mock_receive(): # pragma: no cover
360+
async def mock_receive():
361361
return {"type": "http.request", "body": b"", "more_body": False}
362362

363363
await manager.handle_request(scope, mock_receive, mock_send)

0 commit comments

Comments
 (0)