Example #1
0
 def test_swim_pace_illegal_value(self):
     with pytest.raises(AssertionError):
         filters.swim_pace(1)
Example #2
0
 def test_swim_pace_value_too_large(self):
     with pytest.raises(AssertionError):
         filters.swim_pace(timedelta(seconds=999))
Example #3
0
 def test_swim_pace(self):
     assert filters.swim_pace(
         timedelta(seconds=12.3456)) == "20:34.56 min / 100 m"