Spaces:
Running
Running
Commit ·
d335429
1
Parent(s): 016762e
Fix pre-commit errors.
Browse files- tests/test_examples.py +4 -3
tests/test_examples.py
CHANGED
|
@@ -1,15 +1,14 @@
|
|
| 1 |
"""Tests for example servers"""
|
| 2 |
|
| 3 |
import pytest
|
| 4 |
-
|
| 5 |
from mcp.shared.memory import (
|
| 6 |
create_connected_server_and_client_session as client_session,
|
| 7 |
)
|
| 8 |
from mcp.types import (
|
|
|
|
|
|
|
| 9 |
TextContent,
|
| 10 |
TextResourceContents,
|
| 11 |
-
ReadResourceResult,
|
| 12 |
-
PromptMessage,
|
| 13 |
)
|
| 14 |
|
| 15 |
|
|
@@ -45,7 +44,9 @@ async def test_complex_inputs():
|
|
| 45 |
async def test_desktop(monkeypatch):
|
| 46 |
"""Test the desktop server"""
|
| 47 |
from pathlib import Path
|
|
|
|
| 48 |
from pydantic import AnyUrl
|
|
|
|
| 49 |
from examples.desktop import mcp
|
| 50 |
|
| 51 |
# Mock desktop directory listing
|
|
|
|
| 1 |
"""Tests for example servers"""
|
| 2 |
|
| 3 |
import pytest
|
|
|
|
| 4 |
from mcp.shared.memory import (
|
| 5 |
create_connected_server_and_client_session as client_session,
|
| 6 |
)
|
| 7 |
from mcp.types import (
|
| 8 |
+
PromptMessage,
|
| 9 |
+
ReadResourceResult,
|
| 10 |
TextContent,
|
| 11 |
TextResourceContents,
|
|
|
|
|
|
|
| 12 |
)
|
| 13 |
|
| 14 |
|
|
|
|
| 44 |
async def test_desktop(monkeypatch):
|
| 45 |
"""Test the desktop server"""
|
| 46 |
from pathlib import Path
|
| 47 |
+
|
| 48 |
from pydantic import AnyUrl
|
| 49 |
+
|
| 50 |
from examples.desktop import mcp
|
| 51 |
|
| 52 |
# Mock desktop directory listing
|