Example #1
0
 def setUpClass(cls):
     """Test setUp method."""
     utilities.setUpEnv()
     cls.QGIS_APP = start_app()
     assert cls.QGIS_APP is not None
     cls.IFACE_Mock = get_iface()
     assert cls.IFACE_Mock is not None
 def setUpClass(cls):
     """Test setUp method."""
     utilities.setUpEnv()
     cls.QGIS_APP = start_app()
     assert cls.QGIS_APP is not None
     cls.IFACE_Mock = get_iface()
     assert cls.IFACE_Mock is not None
 def setUpClass(cls):
     """Test setUp method."""
     cls.functionalTests = functionalTests()
     cls.unitTests = [UnitTestWrapper(unit) for unit in unitTests()]
     cls.allTests = cls.functionalTests + cls.unitTests
     cls.QGIS_APP = start_app()
     assert cls.QGIS_APP is not None
     cls.IFACE_Mock = get_iface()
     assert cls.IFACE_Mock is not None
     utilities.setUpEnv()
Example #4
0
 def setUpClass(cls):
     """Test setUp method."""
     utilities.setUpEnv()
     cls.QGIS_APP = start_app()
     assert cls.QGIS_APP is not None
     cls.IFACE_Mock = get_iface()
     assert cls.IFACE_Mock is not None
     # get test data
     testPluginPath = os.path.abspath('data')
     cls.tests = findTests(path=[testPluginPath], prefix='')
 def setUpClass(cls):
     """Test setUp method."""
     cls.functionalTests = functionalTests()
     cls.unitTests = [UnitTestWrapper(unit) for unit in unitTests()]
     cls.allTests = cls.functionalTests + cls.unitTests
     cls.QGIS_APP = start_app()
     assert cls.QGIS_APP is not None
     cls.IFACE_Mock = get_iface()
     assert cls.IFACE_Mock is not None
     utilities.setUpEnv()
Example #6
0
 def setUpClass(cls):
     """Test setUp method."""
     utilities.setUpEnv()
     cls.QGIS_APP = start_app()
     assert cls.QGIS_APP is not None
     cls.IFACE_Mock = get_iface()
     assert cls.IFACE_Mock is not None
     # create test data
     cls.testFile1 = QgsVectorLayer('Point', 'testFile1', 'memory')
     assert cls.testFile1.isValid()
     cls.testFile2 = QgsVectorLayer('Point', 'testFile2', 'memory')
     assert cls.testFile2.isValid()
     cls.testFile3 = QgsVectorLayer('Point', 'testFile3', 'memory')
     assert cls.testFile3.isValid()
Example #7
0
 def setUpClass(cls):
     """Test setUp method."""
     utilities.setUpEnv()
 def setUpClass(cls):
     """Test setUp method."""
     utilities.setUpEnv()