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

Route test_date_parsing

tests/test_utils/test_datetime_parse.py:None–None  ·  view source on GitHub ↗
pytest.mark.parametrize(
    "value,result",
    [
        # Valid inputs
        ("1494012444.883309", date(2017, 5, 5)),
        (b"1494012444.883309", date(2017, 5, 5)),
        (1_494_012_444.883_

Source from the content-addressed store, hash-verified

1"""
2Copied from https://github.com/pydantic/pydantic/blob/v1.10.22/tests/test_datetime_parse.py
3with modifications so it works without pydantic v1 imports.
4"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected