feat: parse DSZO stop timetable pages

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
rickzkmandClaude Sonnet 5.5 committed 2026-10-07 00:22:08 +02:00
1 parent c78c0f9460
commit 8099b4834b
3 files changed
+216

No files matched your search

+6
View File
@@ -1,6 +1,8 @@
"""Shared test data: the four frozen DSZO pages and where they came from."""
from pathlib import Path
from timetable import Timetable, parse_page
ROOT = Path(__file__).resolve().parent.parent
FIXTURES = Path(__file__).parent / "fixtures"
FONT_DIR = str(ROOT / "assets" / "fonts")
@@ -16,3 +18,7 @@ SOURCES = [
def fixture_html(name: str) -> str:
return (FIXTURES / name).read_text(encoding="utf-8")
def load_timetables() -> list[Timetable]:
return [parse_page(fixture_html(name), line, stop) for name, line, stop in SOURCES]