-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from PySport/bugfix/home-away-team-statsbomb
Fix for issue 171
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
|
||
from kloppy import statsbomb | ||
|
||
|
||
class TestIssue171: | ||
def test_determine_statsbomb_home_away_teams(self): | ||
base_dir = os.path.dirname(__file__) | ||
|
||
dataset = statsbomb.load( | ||
event_data=f"{base_dir}/../files/statsbomb_3788741_event.json", | ||
lineup_data=f"{base_dir}/../files/statsbomb_3788741_lineup.json", | ||
coordinates="statsbomb", | ||
) | ||
|
||
assert dataset.metadata.teams[0].name == "Turkey" |