Skip to content

Commit 62725e2

Browse files
author
g97iulio1609
committed
fix: add pragma no cover for unused test helper callback
The _list_tools callback is required to construct the Server but is not actually invoked during the notification test. Marking with pragma: no cover fixes the 99.99% -> 100% coverage gate.
1 parent 5d48dd4 commit 62725e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/client/test_list_changed_callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def on_tools_changed() -> None:
2323
callback_called.set()
2424

2525
async def _list_tools(_ctx: object, _params: object) -> types.ListToolsResult:
26-
return types.ListToolsResult(tools=[])
26+
return types.ListToolsResult(tools=[]) # pragma: no cover
2727

2828
server = Server(
2929
name="ListChangedServer",

0 commit comments

Comments
 (0)