Skip to content

Commit 754e364

Browse files
committed
Adding unit tests
1 parent b8ab280 commit 754e364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mcp/test_resources_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ async def test_read_resource_not_found():
4141
server = FakeMCPServer()
4242

4343
uri = AnyUrl("docs://api/reference")
44-
with pytest.raises(ValueError, match=f"Resource {uri} not found"):
44+
with pytest.raises(KeyError, match=f"Resource {uri} not found"):
4545
await server.read_resource(uri)

0 commit comments

Comments
 (0)