MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / test_pydantic_model_to_dictionary

Function test_pydantic_model_to_dictionary

tests/test_transform.py:277–279  ·  view source on GitHub ↗
(use_async: bool)

Source from the content-addressed store, hash-verified

275@parametrize
276@pytest.mark.asyncio
277async def test_pydantic_model_to_dictionary(use_async: bool) -> None:
278 assert cast(Any, await transform(MyModel(foo="hi!"), Any, use_async)) == {"foo": "hi!"}
279 assert cast(Any, await transform(MyModel.construct(foo="hi!"), Any, use_async)) == {"foo": "hi!"}
280
281
282@parametrize

Callers

nothing calls this directly

Calls 3

MyModelClass · 0.85
transformFunction · 0.70
constructMethod · 0.45

Tested by

no test coverage detected