Skip to content

Commit 10ceac6

Browse files
committedFeb 20, 2018
Exempt AFS provider from certain provider tests
1 parent 5f12bd5 commit 10ceac6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎tests/src/python/test_provider_afs.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,20 @@ def tearDownClass(cls):
441441
#shutil.rmtree(cls.basetestpath, True)
442442
cls.vl = None # so as to properly close the provider and remove any temporary file
443443

444+
def testGetFeaturesSubsetAttributes2(self):
445+
""" Override and skip this test for AFS provider, as it's actually more efficient for the AFS provider to return
446+
its features as direct copies (due to implicit sharing of QgsFeature), and the nature of the caching
447+
used by the AFS provider.
448+
"""
449+
pass
450+
451+
def testGetFeaturesNoGeometry(self):
452+
""" Override and skip this test for AFS provider, as it's actually more efficient for the AFS provider to return
453+
its features as direct copies (due to implicit sharing of QgsFeature), and the nature of the caching
454+
used by the AFS provider.
455+
"""
456+
pass
457+
444458

445459
if __name__ == '__main__':
446460
unittest.main()

0 commit comments

Comments
 (0)
Please sign in to comment.