7-digit fractional seconds (nanoseconds) should be truncated to 6.
()
| 47 | |
| 48 | |
| 49 | def test_parse_timestamp_nanoseconds(): |
| 50 | """7-digit fractional seconds (nanoseconds) should be truncated to 6.""" |
| 51 | result = parse_timestamp("2025-01-15T10:30:00.1234567+0000") |
| 52 | assert result == datetime.datetime( |
| 53 | 2025, 1, 15, 10, 30, 0, 123456, tzinfo=datetime.timezone.utc |
| 54 | ) |
| 55 | |
| 56 | |
| 57 | def test_parse_timestamp_extra_nanoseconds(): |
nothing calls this directly
no test coverage detected