Skip to content
Permalink
Browse files

Fix PyQgsVectorFileWriter test

  • Loading branch information
elpaso authored and nyalldawson committed Feb 8, 2021
1 parent 2c380b7 commit 434154b5baaabfa03274dd46af290e458a6a74c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/test_qgsvectorfilewriter.py
@@ -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)

0 comments on commit 434154b

Please sign in to comment.