Skip to content

Commit

Permalink
Fix tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo committed Jan 27, 2022
1 parent da6c2ef commit 83d74e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kloppy/tests/test_opta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
PassType,
DatasetType,
CardType,
FormationType,
)

from kloppy import opta
Expand Down Expand Up @@ -52,10 +53,14 @@ def test_correct_deserialization(self, f7_data: str, f24_data: str):
)
assert dataset.metadata.teams[0].name == "FC København"
assert dataset.metadata.teams[0].ground == Ground.HOME
assert dataset.metadata.teams[0].starting_formation == "4-4-2"
assert dataset.metadata.teams[0].starting_formation == FormationType(
"4-4-2"
)
assert dataset.metadata.teams[1].name == "FC Nordsjælland"
assert dataset.metadata.teams[1].ground == Ground.AWAY
assert dataset.metadata.teams[1].starting_formation == "4-3-3"
assert dataset.metadata.teams[1].starting_formation == FormationType(
"4-3-3"
)

player = dataset.metadata.teams[0].players[0]
assert player.player_id == "111319"
Expand Down

0 comments on commit 83d74e8

Please sign in to comment.