Files
2026-10-07 00:20:00 +02:00

16 lines
541 B
Python

import yaml
from tests.helpers import ROOT, SOURCES, fixture_html
def test_fixtures_are_dszo_stop_timetables():
for name, line, stop in SOURCES:
html = fixture_html(name)
assert 'class="stop-timetable"' in html, name
assert f'zast. {stop}' in html and f'linka "{line}"' in html, name
def test_lines_yaml_matches_fixture_sources():
entries = yaml.safe_load((ROOT / "lines.yaml").read_text(encoding="utf-8"))["lines"]
assert [(e["line"], e["stop"]) for e in entries] == [(l, s) for _, l, s in SOURCES]