Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information
elpaso committed Mar 7, 2019
1 parent d082479 commit 3011f2282b8a4fa4292585196601c35a9afdbaa5
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/test_qgsvectorlayerutils.py
@@ -552,10 +552,10 @@ def test_make_features_compatible_attributes(self):
f1.setAttributes([1, 'foo', 'blah'])
QgsVectorLayerUtils.matchAttributesToFields(f1, fields)
self.assertEqual(len(f1.attributes()), 4)
self.assertEqual(f1.attributes()[0], 'foo')
self.assertEqual(f1.attributes()[1], 1)
self.assertEqual(f1.attributes()[2], QVariant())
self.assertEqual(f1.attributes()[3], 'blah')
self.assertEqual(f1.attributes()[0], 1)
self.assertEqual(f1.attributes()[1], 'foo')
self.assertEqual(f1.attributes()[2], 'blah')
self.assertEqual(f1.attributes()[3], QVariant())

# case insensitive
fields2.append(QgsField('extra3', QVariant.String))

0 comments on commit 3011f22

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