Skip to content

Commit 63bb350

Browse files
fix: remove incorrect pragma: no cover from test helpers that are executed
The test_remove_resource_and_read and test_remove_prompt_and_get tests call the resource/prompt before removing it, so the function bodies are covered. Remove the pragma to satisfy strict-no-cover.
1 parent a1e2c67 commit 63bb350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server/mcpserver/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ async def test_remove_resource_and_read(self):
834834
mcp = MCPServer()
835835

836836
@mcp.resource("resource://test")
837-
def get_data() -> str: # pragma: no cover
837+
def get_data() -> str:
838838
return "Hello"
839839

840840
async with Client(mcp) as client:
@@ -1574,7 +1574,7 @@ async def test_remove_prompt_and_get(self):
15741574
mcp = MCPServer()
15751575

15761576
@mcp.prompt()
1577-
def fn() -> str: # pragma: no cover
1577+
def fn() -> str:
15781578
return "Hello"
15791579

15801580
async with Client(mcp) as client:

0 commit comments

Comments
 (0)