from __future__ import annotations from racing_reports.match_index import MatchIndex def test_build_match_index(sample_store): idx = MatchIndex(sample_store).build("Spanish Segunda Division", "25-26") assert len(idx) == 2 first = idx[idx["match_id"] == "m1"].iloc[0] assert first["home_team"] == "Racing de Santander" assert first["away_team"] == "Almería"