bristol-eurostar/tests
Edward Betts c22a3ea0fc Consolidate to single GraphQL call; show indirect trains; fix price formatting
Replace two-step Eurostar fetch (HTML timetable + GraphQL prices) with a
single GraphQL call that returns timing, train numbers, prices, and seats.
Support indirect services (e.g. Amsterdam) by joining multi-leg train numbers
with ' + ' and keeping the earliest arrival per departure time.
Fix half-pound prices by casting displayPrice to float instead of int.
Wrap each train number segment in white-space:nowrap so 'ES 9132 + ER 9363'
never breaks mid-segment.
Format Eurostar prices with two decimal places.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 14:46:22 +01:00
..
test_app.py Consolidate to single GraphQL call; show indirect trains; fix price formatting 2026-04-04 14:46:22 +01:00
test_cache.py Add 24-hour TTL to Eurostar price cache 2026-04-04 10:38:47 +01:00
test_eurostar_scraper.py Consolidate to single GraphQL call; show indirect trains; fix price formatting 2026-04-04 14:46:22 +01:00
test_rtt_scraper.py Initial commit. 2026-03-30 19:34:46 +01:00
test_trip_planner.py Link to Eurostar search page with pricing; add Bristol departures RTT link 2026-04-04 10:47:46 +01:00