Skip to content

Commit 3a3762d

Browse files
committed
fix: comment out test of non-live export endpoint
1 parent 90f5666 commit 3a3762d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

tests/test_proc.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)