Skip to content

Commit

Permalink
Small modification of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminLarrousse committed Jan 26, 2021
1 parent 4a54d30 commit a833257
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kloppy/tests/test_statsbomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Provider,
EventType,
BodyPartQualifier,
BodyPart,
)
from kloppy.domain.models.common import DatasetType

Expand Down Expand Up @@ -70,13 +71,13 @@ def test_correct_deserialization(self):
)

assert (
dataset.events[791].get_qualifier_value(BodyPartQualifier).value
== "HEAD"
dataset.events[791].get_qualifier_value(BodyPartQualifier)
== BodyPart.HEAD
)

assert (
dataset.events[2231].get_qualifier_value(BodyPartQualifier).value
== "RIGHT_FOOT"
dataset.events[2231].get_qualifier_value(BodyPartQualifier)
== BodyPart.RIGHT_FOOT
)

assert (
Expand Down

0 comments on commit a833257

Please sign in to comment.