Skip to content
Permalink
Browse files

Skip ept specific tests if ept provider is not built

  • Loading branch information
nyalldawson committed Nov 6, 2020
1 parent 611fca9 commit fd9abf8a8e4c79cb3013c5eb85aa387bc5eda8eb
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/src/python/test_qgsproviderregistry.py
@@ -61,7 +61,8 @@ def testCreateProvider(self):

self.assertIsNone(QgsProviderRegistry.instance().createProvider('asdasdasdasdasd', ''))

def testShouldDeferUriForOtherProviders(self):
@unittest.skipIf('ept' not in QgsProviderRegistry.instance().providerList(), 'EPT provider not available')
def testShouldDeferUriForOtherProvidersEpt(self):
self.assertTrue(QgsProviderRegistry.instance().shouldDeferUriForOtherProviders('/home/nyall/ept.json', 'ogr'))
self.assertFalse(QgsProviderRegistry.instance().shouldDeferUriForOtherProviders('/home/nyall/ept.json', 'ept'))
self.assertFalse(QgsProviderRegistry.instance().shouldDeferUriForOtherProviders('/home/nyall/my.json', 'ogr'))
@@ -79,6 +80,7 @@ def testUriIsBlocklisted(self):
self.assertTrue(QgsProviderRegistry.instance().uriIsBlocklisted('/home/nyall/me.png.aux.xml'))
self.assertTrue(QgsProviderRegistry.instance().uriIsBlocklisted('/home/nyall/me.tif.xml'))

@unittest.skipIf('ept' not in QgsProviderRegistry.instance().providerList(), 'EPT provider not available')
def testFilePointCloudFilters(self):
parts = QgsProviderRegistry.instance().filePointCloudFilters().split(';;')
self.assertTrue(parts[0].startswith('All Supported Files ('))

0 comments on commit fd9abf8

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