def setUpClass(cls):
        start_app()
        from processing_gsoc_grass.core.Processing import Processing
        Processing.initialize()
        cls.cleanup_paths = []

        assert Grass7Utils.installedVersion()
 def setUpClass(cls):
     start_app()
     QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
     from processing_gsoc_grass.core.Processing import Processing
     Processing.initialize()
     cls.cleanup_paths = []
     cls.in_place_layers = {}
     cls.vector_layer_params = {}
Ejemplo n.º 3
0
    def setUpClass(cls):
        start_app()
        from processing_gsoc_grass.core.Processing import Processing
        Processing.initialize()
        cls.cleanup_paths = []

        cls.temp_dir = tempfile.mkdtemp()
        cls.cleanup_paths.append(cls.temp_dir)

        assert Grass7Utils.installedVersion()
Ejemplo n.º 4
0
 def __init__(self, iface):
     self.iface = iface
     self.options_factory = ProcessingOptionsFactory()
     self.options_factory.setTitle(self.tr('Processing'))
     iface.registerOptionsWidgetFactory(self.options_factory)
     self.drop_handler = ProcessingDropHandler()
     iface.registerCustomDropHandler(self.drop_handler)
     self.item_provider = ProcessingDataItemProvider()
     QgsApplication.dataItemProviderRegistry().addProvider(self.item_provider)
     self.locator_filter = AlgorithmLocatorFilter()
     iface.registerLocatorFilter(self.locator_filter)
     Processing.initialize()
Ejemplo n.º 5
0
 def setUpClass(cls):
     start_app()
     from processing_gsoc_grass.core.Processing import Processing
     Processing.initialize()
     cls.cleanup_paths = []
Ejemplo n.º 6
0
 def setUpClass(cls):
     # start_app()
     from processing_gsoc_grass.core.Processing import Processing
     Processing.initialize()