mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 05:07:31 +01:00
st.datetimes() generates naive datetimes with fold=1 (the second occurrence of an ambiguous local time on a DST fall-back day), which made test_valid_iso_dates_parse_to_timestamp unsatisfiable: datetime.isoformat() omits fold, so both occurrences reach parse_release_date as the same string, while dt.timestamp() honours fold. The two sides then differ by the DST offset. Constrain the strategy to fold=0. This loses no coverage, since every fold=1 value maps onto its fold=0 twin that the strategy already generates, and it matches what fromisoformat returns for a string with no fold information. Also add a deterministic test pinning the behaviour: both folds serialize to the same ISO string, and the parser resolves it to the first occurrence. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>