MCPcopy
hub / github.com/django/django / test_seconds

Method test_seconds

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

Source from the content-addressed store, hash-verified

133 self.assertEqual(parse_duration(source), expected)
134
135 def test_seconds(self):
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))

Callers

nothing calls this directly

Calls 1

parse_durationFunction · 0.90

Tested by

no test coverage detected