Home / Function/ test_datetime_with_alias() — anthropic-sdk-python Function Reference

test_datetime_with_alias() — anthropic-sdk-python Function Reference

Architecture documentation for the test_datetime_with_alias() function in test_transform.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  f7c91687_31ca_908f_fd70_b26508fc9bd1["test_datetime_with_alias()"]
  6d065906_49ba_5188_2c4a_08d599bd18f8["test_transform.py"]
  f7c91687_31ca_908f_fd70_b26508fc9bd1 -->|defined in| 6d065906_49ba_5188_2c4a_08d599bd18f8
  5eb50e5f_8948_6af4_c03d_f10efd0687eb["transform()"]
  f7c91687_31ca_908f_fd70_b26508fc9bd1 -->|calls| 5eb50e5f_8948_6af4_c03d_f10efd0687eb
  style f7c91687_31ca_908f_fd70_b26508fc9bd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_transform.py lines 264–268

async def test_datetime_with_alias(use_async: bool) -> None:
    assert await transform({"required_prop": None}, DateDictWithRequiredAlias, use_async) == {"prop": None}  # type: ignore[comparison-overlap]
    assert await transform(
        {"required_prop": date.fromisoformat("2023-02-23")}, DateDictWithRequiredAlias, use_async
    ) == {"prop": "2023-02-23"}  # type: ignore[comparison-overlap]

Subdomains

Calls

Frequently Asked Questions

What does test_datetime_with_alias() do?
test_datetime_with_alias() is a function in the anthropic-sdk-python codebase, defined in tests/test_transform.py.
Where is test_datetime_with_alias() defined?
test_datetime_with_alias() is defined in tests/test_transform.py at line 264.
What does test_datetime_with_alias() call?
test_datetime_with_alias() 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