Skip to content
Permalink
Browse files

Fix unit test

  • Loading branch information
nyalldawson committed Jun 13, 2018
1 parent 1a226e6 commit 2320a043e23058a741b07ce8bafc9278fa846332
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/src/python/test_qgsrange.py
@@ -217,8 +217,9 @@ def testIsEmpty(self):
range = QgsDateRange(QDate(2010, 3, 1), QDate())
self.assertFalse(range.isEmpty())

# check QgsDateRange docs - this is treated as an infinite range, so is NOT empty
range = QgsDateRange(QDate(), QDate())
self.assertTrue(range.isEmpty())
self.assertFalse(range.isEmpty())

range = QgsDateRange(QDate(2017, 3, 1), QDate(2010, 6, 2))
self.assertTrue(range.isEmpty())

0 comments on commit 2320a04

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