v ze zast. Vršava jede do vozovny po tř. 2. května
z ze zast. Náměstí Míru jede na Školní
+
+
+
+
Všechny spoje jsou zajišťovány nízkopodlažními vozidly (@). Na lince platí Tarif a Smluvní přepravní podmínky MHD Zlín-Otrokovice zveřejněné na informačních místech dopravce.
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/fixtures/line36_druzstvo.html b/tests/fixtures/line36_druzstvo.html
new file mode 100644
index 0000000..cbba45b
--- /dev/null
+++ b/tests/fixtures/line36_druzstvo.html
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ Jízdní řád - linka "36", zast. Štípa,družstvo
+
+
+
+
+
+
+
+
+
L ze zast. Náměstí Míru jede na Lesní Čtvrť přes Školní
t ze zast. Náměstí Práce jede na Otrokovice,Štěrkoviště
+
+
+
+
Všechny spoje jsou zajišťovány nízkopodlažními vozidly (@). Na lince platí Tarif a Smluvní přepravní podmínky MHD Zlín-Otrokovice zveřejněné na informačních místech dopravce.
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/fixtures/line4_u_potoka.html b/tests/fixtures/line4_u_potoka.html
new file mode 100644
index 0000000..c08439f
--- /dev/null
+++ b/tests/fixtures/line4_u_potoka.html
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ Jízdní řád - linka "4", zast. Štípa,u potoka
+
+
+
+
+
+
+
+
+
v ze zast. Padělky I jede do vozovny po tř. 2. května
+
+
+
+
Všechny spoje jsou zajišťovány nízkopodlažními vozidly (@). Na lince platí Tarif a Smluvní přepravní podmínky MHD Zlín-Otrokovice zveřejněné na informačních místech dopravce.
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/fixtures/line5_u_potoka.html b/tests/fixtures/line5_u_potoka.html
new file mode 100644
index 0000000..ccad42c
--- /dev/null
+++ b/tests/fixtures/line5_u_potoka.html
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ Jízdní řád - linka "5", zast. Štípa,u potoka
+
+
+
+
+
+
+
+
+
Všechny spoje jsou zajišťovány nízkopodlažními vozidly (@). Na lince platí Tarif a Smluvní přepravní podmínky MHD Zlín-Otrokovice zveřejněné na informačních místech dopravce.
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/helpers.py b/tests/helpers.py
new file mode 100644
index 0000000..20802f3
--- /dev/null
+++ b/tests/helpers.py
@@ -0,0 +1,18 @@
+"""Shared test data: the four frozen DSZO pages and where they came from."""
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+FIXTURES = Path(__file__).parent / "fixtures"
+FONT_DIR = str(ROOT / "assets" / "fonts")
+
+# (fixture file, line, stop) — same order as lines.yaml
+SOURCES = [
+ ("line4_u_potoka.html", "4", "Štípa,u potoka"),
+ ("line5_u_potoka.html", "5", "Štípa,u potoka"),
+ ("line35_druzstvo.html", "35", "Štípa,družstvo"),
+ ("line36_druzstvo.html", "36", "Štípa,družstvo"),
+]
+
+
+def fixture_html(name: str) -> str:
+ return (FIXTURES / name).read_text(encoding="utf-8")
diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py
new file mode 100644
index 0000000..161cd46
--- /dev/null
+++ b/tests/test_fixtures.py
@@ -0,0 +1,15 @@
+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]