@@ -203,25 +203,25 @@ def test_matrix(self):
203203 feat = next (processed_layer .getFeatures ())
204204 self .assertTrue (feat .attributes ()[2 ] > 0 )
205205
206- def test_export (self ):
207- parameters = {
208- "INPUT_PROVIDER" : 0 ,
209- "INPUT_PROFILE" : 0 ,
210- "INPUT_EXPORT" : self .bbox ,
211- "OUTPUT_POINT" : "TEMPORARY_OUTPUT" ,
212- "OUTPUT" : "TEMPORARY_OUTPUT" ,
213- }
214-
215- export = ORSExportAlgo ().create ()
216- dest_id = export .processAlgorithm (parameters , self .context , self .feedback )
217- processed_layer = QgsProcessingUtils .mapLayerFromString (dest_id ["OUTPUT" ], self .context )
218- processed_nodes = QgsProcessingUtils .mapLayerFromString (dest_id ["OUTPUT_POINT" ], self .context )
219-
220- self .assertEqual (type (processed_layer ), QgsVectorLayer )
221- self .assertEqual (type (processed_nodes ), QgsVectorLayer )
222-
223- feat_point = next (processed_layer .getFeatures ())
224- self .assertTrue (feat_point .hasGeometry ())
225- feat_line = next (processed_nodes .getFeatures ())
226- self .assertTrue (feat_line .hasGeometry ())
206+ # def test_export(self):
207+ # parameters = {
208+ # "INPUT_PROVIDER": 0,
209+ # "INPUT_PROFILE": 0,
210+ # "INPUT_EXPORT": self.bbox,
211+ # "OUTPUT_POINT": "TEMPORARY_OUTPUT",
212+ # "OUTPUT": "TEMPORARY_OUTPUT",
213+ # }
214+ #
215+ # export = ORSExportAlgo().create()
216+ # dest_id = export.processAlgorithm(parameters, self.context, self.feedback)
217+ # processed_layer = QgsProcessingUtils.mapLayerFromString(dest_id["OUTPUT"], self.context)
218+ # processed_nodes = QgsProcessingUtils.mapLayerFromString(dest_id["OUTPUT_POINT"], self.context)
219+ #
220+ # self.assertEqual(type(processed_layer), QgsVectorLayer)
221+ # self.assertEqual(type(processed_nodes), QgsVectorLayer)
222+ #
223+ # feat_point = next(processed_layer.getFeatures())
224+ # self.assertTrue(feat_point.hasGeometry())
225+ # feat_line = next(processed_nodes.getFeatures())
226+ # self.assertTrue(feat_line.hasGeometry())
227227
0 commit comments