CI runs with TZ unset, so no local time is ambiguous and both folds of
1981-10-25T01:00 named the same instant. The assertion held trivially and
would not have caught a regression in first-occurrence handling.
Pin America/New_York for the duration of the test, since a naive
datetime.timestamp() reads the process timezone, and assert the two folds
really are an hour apart so the test fails loudly instead of going vacuous
if that ever stops holding.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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>
Add Hypothesis to the test dependency group with CI/dev profiles, and
introduce property-based tests for high-value pure functions: crc32_to_hex,
filesystem and LaunchBox filename sanitization, LaunchBox metadata parsers,
and ROM filename tag parsing.
https://claude.ai/code/session_01GCTFmzuhvqNbSAfw3rGxmj