Skip to content

Commit

Permalink
Fix PyQgsVectorFileWriter test
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Feb 5, 2021
1 parent 4abbaff commit eda811f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorfilewriter.py
Expand Up @@ -261,7 +261,7 @@ def testDateTimeWriteShapefile(self):
time_idx = created_layer.fields().lookupField('time_f')
# shapefiles do not support time types
self.assertIsInstance(f.attributes()[time_idx], str)
self.assertEqual(f.attributes()[time_idx], '13:45:22')
self.assertTrue(f.attributes()[time_idx].startswith('13:45:22'))
# shapefiles do not support datetime types
datetime_idx = created_layer.fields().lookupField('dt_f')
self.assertIsInstance(f.attributes()[datetime_idx], str)
Expand Down

0 comments on commit eda811f

Please sign in to comment.