Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information
elpaso committed Mar 7, 2019
1 parent 0325a37 commit 6ddf78c15ebb89e452cb3ab82c65ad4be74e142f
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 6ddf78c

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