MCPcopy
hub / github.com/django/django / test_minutes_seconds

Method test_minutes_seconds

tests/utils_tests/test_dateparse.py:138–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 self.assertEqual(parse_duration("30"), timedelta(seconds=30))
137
138 def test_minutes_seconds(self):
139 self.assertEqual(parse_duration("15:30"), timedelta(minutes=15, seconds=30))
140 self.assertEqual(parse_duration("5:30"), timedelta(minutes=5, seconds=30))
141
142 def test_hours_minutes_seconds(self):
143 self.assertEqual(

Callers

nothing calls this directly

Calls 1

parse_durationFunction · 0.90

Tested by

no test coverage detected