Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 14, 2020
1 parent 3da3dea commit 495f2ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_provider_ogr_gpkg.py
Expand Up @@ -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),
Expand Down

0 comments on commit 495f2ab

Please sign in to comment.