MCPcopy Index your code
hub / github.com/DeepL/deepl-python / test_parse_timestamp_microseconds

Function test_parse_timestamp_microseconds

tests/test_util.py:41–46  ·  view source on GitHub ↗

Standard 6-digit fractional seconds should parse correctly.

()

Source from the content-addressed store, hash-verified

39
40
41def test_parse_timestamp_microseconds():
42 """Standard 6-digit fractional seconds should parse correctly."""
43 result = parse_timestamp("2025-01-15T10:30:00.123456+0000")
44 assert result == datetime.datetime(
45 2025, 1, 15, 10, 30, 0, 123456, tzinfo=datetime.timezone.utc
46 )
47
48
49def test_parse_timestamp_nanoseconds():

Callers

nothing calls this directly

Calls 1

parse_timestampFunction · 0.90

Tested by

no test coverage detected