Skip to content

Commit

Permalink
fix broken timestamp test
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesDeprest committed Jul 3, 2024
1 parent 002ba31 commit 399c0f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kloppy/tests/test_wyscout.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ def test_timestamps(self, dataset: EventDataset):
assert kickoff_p1.timestamp == timedelta(minutes=0, seconds=1)
# Note: the test file is incorrect. The second period start at 45:00
kickoff_p2 = dataset.get_event_by_id(1331979498)
assert kickoff_p2.timestamp == timedelta(
minutes=1, seconds=0
) - timedelta(minutes=45)
assert kickoff_p2.timestamp == timedelta(seconds=900)

def test_coordinates(self, dataset: EventDataset):
assert dataset.records[2].coordinates == Point(36.0, 78.0)
Expand Down

0 comments on commit 399c0f9

Please sign in to comment.