test_union_datetime() — anthropic-sdk-python Function Reference
Architecture documentation for the test_union_datetime() function in test_transform.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD dc04cd79_ce58_137d_7526_3d3b51a8763b["test_union_datetime()"] 6d065906_49ba_5188_2c4a_08d599bd18f8["test_transform.py"] dc04cd79_ce58_137d_7526_3d3b51a8763b -->|defined in| 6d065906_49ba_5188_2c4a_08d599bd18f8 5eb50e5f_8948_6af4_c03d_f10efd0687eb["transform()"] dc04cd79_ce58_137d_7526_3d3b51a8763b -->|calls| 5eb50e5f_8948_6af4_c03d_f10efd0687eb style dc04cd79_ce58_137d_7526_3d3b51a8763b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_transform.py lines 230–236
async def test_union_datetime(use_async: bool) -> None:
dt = datetime.fromisoformat("2023-02-23T14:16:36.337692+00:00")
assert await transform({"union": dt}, DatetimeDict, use_async) == { # type: ignore[comparison-overlap]
"union": "2023-02-23T14:16:36.337692+00:00"
}
assert await transform({"union": "foo"}, DatetimeDict, use_async) == {"union": "foo"}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_union_datetime() do?
test_union_datetime() is a function in the anthropic-sdk-python codebase, defined in tests/test_transform.py.
Where is test_union_datetime() defined?
test_union_datetime() is defined in tests/test_transform.py at line 230.
What does test_union_datetime() call?
test_union_datetime() calls 1 function(s): transform.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free