test_date_parsing() — anthropic-sdk-python Function Reference
Architecture documentation for the test_date_parsing() function in test_datetime_parse.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD be545e02_73dd_98c0_9897_c66cd7a7f52d["test_date_parsing()"] 59262a3f_6d06_383c_8999_fd1ad8974c65["test_datetime_parse.py"] be545e02_73dd_98c0_9897_c66cd7a7f52d -->|defined in| 59262a3f_6d06_383c_8999_fd1ad8974c65 style be545e02_73dd_98c0_9897_c66cd7a7f52d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_utils/test_datetime_parse.py lines 53–58
def test_date_parsing(value: Union[str, bytes, int, float], result: Union[date, Type[Exception]]) -> None:
if type(result) == type and issubclass(result, Exception): # pyright: ignore[reportUnnecessaryIsInstance]
with pytest.raises(result):
parse_date(value)
else:
assert parse_date(value) == result
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_date_parsing() do?
test_date_parsing() is a function in the anthropic-sdk-python codebase, defined in tests/test_utils/test_datetime_parse.py.
Where is test_date_parsing() defined?
test_date_parsing() is defined in tests/test_utils/test_datetime_parse.py at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free