Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo authored Dec 29, 2023
1 parent 5e07842 commit 184de78
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions kloppy/tests/test_wyscout.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ def dataset(self, event_v2_data) -> EventDataset:
assert dataset.dataset_type == DatasetType.EVENT
return dataset

def test_shot_event(self, dataset: EventDataset):
shot_event = dataset.get_event_by_id("190079151")
assert (
shot_event.get_qualifier_value(BodyPartQualifier)
== BodyPart.RIGHT_FOOT
)

def test_miscontrol_event(self, dataset: EventDataset):
miscontrol_event = dataset.get_event_by_id("190078351")
assert miscontrol_event.event_type == EventType.MISCONTROL
Expand Down Expand Up @@ -169,11 +176,6 @@ def test_duel_event(self, dataset: EventDataset):
assert sliding_tackle_duel_event.event_type == EventType.DUEL
assert (
sliding_tackle_duel_event.get_qualifier_values(DuelQualifier)[2]
dataset.events[118].get_qualifier_value(BodyPartQualifier)
== BodyPart.RIGHT_FOOT
)
assert (
dataset.events[268].get_qualifier_values(DuelQualifier)[2]
== DuelType.SLIDING_TACKLE
)

Expand Down

0 comments on commit 184de78

Please sign in to comment.