Skip to content

Commit

Permalink
add test for converting clock time to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
guidopetri committed May 10, 2021
1 parent bbbb1b3 commit 272f254
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,13 @@ def test_get_sf_evaluation():


def test_convert_clock_to_seconds():
assert False
data = pd.Series(['0:00:03', '0:01:00', '0:10:39', None, 'NotATimedelta'])

clean = pd.Series([3, 60, 639, -1, -1], dtype=int)

parsed = transforms.convert_clock_to_seconds(data)

pd.testing.assert_series_equal(parsed, clean)


def test_get_clean_fens():
Expand Down

0 comments on commit 272f254

Please sign in to comment.