Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed Dec 18, 2020
1 parent 2f2e410 commit 4f4ef6d4bf3cbf02b36df003b6aa7b9fb7c057bf
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/src/python/test_qgsinterval.py
@@ -266,8 +266,11 @@ def testIntervalDurationUnitSetting(self):
self.assertEqual(i.originalDuration(), 1.0)
self.assertEqual(i.originalUnit(), QgsUnitTypes.TemporalSeconds)
i = QgsInterval(0, 0, 0, 0, 0, 0, 0)

# we may as well treat this the same as if 0 seconds was explicitly specified!
self.assertEqual(i.originalDuration(), 0.0)
self.assertEqual(i.originalUnit(), QgsUnitTypes.TemporalUnknownUnit)
self.assertEqual(i.originalUnit(), QgsUnitTypes.TemporalSeconds)

i = QgsInterval(0, 0, 0, 0, 0, 1, 1)
self.assertEqual(i.originalDuration(), 0.0)
self.assertEqual(i.originalUnit(), QgsUnitTypes.TemporalUnknownUnit)

0 comments on commit 4f4ef6d

Please sign in to comment.
You can’t perform that action at this time.