MCPcopy Create free account
hub / github.com/DeepL/deepl-python / test_parse_timestamp_extra_nanoseconds

Function test_parse_timestamp_extra_nanoseconds

tests/test_util.py:57–62  ·  view source on GitHub ↗

9-digit fractional seconds should be truncated to 6.

()

Source from the content-addressed store, hash-verified

55
56
57def test_parse_timestamp_extra_nanoseconds():
58 """9-digit fractional seconds should be truncated to 6."""
59 result = parse_timestamp("2025-01-15T10:30:00.123456789+0000")
60 assert result == datetime.datetime(
61 2025, 1, 15, 10, 30, 0, 123456, tzinfo=datetime.timezone.utc
62 )

Callers

nothing calls this directly

Calls 1

parse_timestampFunction · 0.90

Tested by

no test coverage detected