We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 113ab01 commit 4e436c2Copy full SHA for 4e436c2
tests/src/python/test_qgsfield.py
@@ -37,6 +37,14 @@ def test_exceptions(self):
37
fields.remove(111)
38
39
fields = ml.fields()
40
+
41
+ # check no error
42
+ self.assertEqual("value", fields[1].name())
43
+ self.assertEqual("value", fields[-1].name())
44
+ # check exceptions raised
45
+ with self.assertRaises(IndexError):
46
+ fields[111]
47
48
# check no error
49
fields.at(1)
50
# check exceptions raised
0 commit comments