Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed May 14, 2020
1 parent 3da3dea commit 495f2ab64a433a793c9e369ce2b84574c727a6b1
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_provider_ogr_gpkg.py
@@ -1540,8 +1540,8 @@ def testMinMaxDateField(self):
self.assertEqual(vl.fields().at(3).type(), QVariant.DateTime)
self.assertEqual(vl.dataProvider().minimumValue(2), QDate(2010, 1, 1))
self.assertEqual(vl.dataProvider().maximumValue(2), QDate(2019, 1, 1))
self.assertEqual(vl.dataProvider().minimumValue(3), QDateTime(2010, 1, 1, 1, 1, 1, 0, Qt.TimeSpec(1)))
self.assertEqual(vl.dataProvider().maximumValue(3), QDateTime(2022, 1, 1, 1, 1, 1, 0, Qt.TimeSpec(1)))
self.assertEqual(vl.dataProvider().minimumValue(3), QDateTime(2010, 1, 1, 1, 1, 1, 0))
self.assertEqual(vl.dataProvider().maximumValue(3), QDateTime(2022, 1, 1, 1, 1, 1, 0))
self.assertEqual(vl.dataProvider().uniqueValues(2),
{QDate(2017, 1, 1), NULL, QDate(2018, 1, 1), QDate(2019, 1, 1), QDate(2010, 1, 1)})
self.assertEqual(vl.dataProvider().uniqueValues(3),

0 comments on commit 495f2ab

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