MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_datetime_with_alias

Function test_datetime_with_alias

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

Source from the content-addressed store, hash-verified

262@parametrize
263@pytest.mark.asyncio
264async def test_datetime_with_alias(use_async: bool) -> None:
265 assert await transform({"required_prop": None}, DateDictWithRequiredAlias, use_async) == {"prop": None} # type: ignore[comparison-overlap]
266 assert await transform(
267 {"required_prop": date.fromisoformat("2023-02-23")}, DateDictWithRequiredAlias, use_async
268 ) == {"prop": "2023-02-23"} # type: ignore[comparison-overlap]
269
270
271class MyModel(BaseModel):

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected