RRC / tests /test_match_index.py
pablogrois's picture
Deploy: modelo de ataque matchup GNN + artifacts bundleados (LFS)
9da4e9c
Raw
History Blame Contribute Delete
381 Bytes
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"