Skip to content
Permalink
Browse files

Remove checkindex

needs more recent QT
  • Loading branch information
elpaso committed Oct 30, 2020
1 parent dec8b05 commit 669fe014a3dcf0239aa50ac708c1565205a613ac
Showing with 0 additions and 4 deletions.
  1. +0 −4 tests/src/python/test_qgslayertreeview.py
@@ -524,18 +524,14 @@ def testNode2IndexMethods(self):
proxy_model = view.proxyModel()

proxy_index = proxy_model.index(1, 0)
self.assertTrue(proxy_model.checkIndex(proxy_index))
node2 = view.index2node(proxy_index)
self.assertEqual(node2.name(), 'layer2')

proxy_layer2_index = view.node2index(node2)
self.assertTrue(proxy_model.checkIndex(proxy_layer2_index))
self.assertEqual(proxy_layer2_index, view.node2index(node2))

source_index = tree_model.index(1, 0)
self.assertTrue(tree_model.checkIndex(source_index))
tree_layer2_index = view.node2sourceIndex(node2)
self.assertTrue(tree_model.checkIndex(tree_layer2_index))
self.assertEqual(tree_layer2_index, view.node2sourceIndex(node2))


0 comments on commit 669fe01

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