mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
replace inefficient use of to_jsonable_python (#545)
This commit is contained in:
@@ -100,7 +100,7 @@ class TestFunctionResource:
|
||||
fn=lambda: MyModel(name="test"),
|
||||
)
|
||||
content = await resource.read()
|
||||
assert content == '{"name": "test"}'
|
||||
assert content == '{\n "name": "test"\n}'
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_custom_type_conversion(self):
|
||||
|
||||
@@ -185,4 +185,4 @@ class TestResourceTemplate:
|
||||
|
||||
assert isinstance(resource, FunctionResource)
|
||||
content = await resource.read()
|
||||
assert content == "hello"
|
||||
assert content == '"hello"'
|
||||
|
||||
Reference in New Issue
Block a user