Spaces:
Running
Running
| from __future__ import annotations | |
| import pytest | |
| from underdog_lab.data.repository import MatchRepository | |
| def repository() -> MatchRepository: | |
| return MatchRepository() | |
| def neutral_match(repository): | |
| return next(match for match in repository.list() if match.neutral_venue) | |
| def home_match(repository): | |
| return next(match for match in repository.list() if not match.neutral_venue) | |