Skip to content

Commit cbcf9d2

Browse files
author
Daniel
committed
update tests for impactmap
1 parent 165c189 commit cbcf9d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

geovita_processing_plugin/test/test_alg_impact.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ def test_algorithm_execution_all(self):
155155

156156
# Verify results
157157
# For example, check if output shapefiles exist
158-
self.assertTrue(Path(results["OUTPUT_FOLDER"]).exists())
158+
self.assertTrue(Path(results["OUTPUT_RASTER"]).exists())
159159

160160
# Further checks can include verifying the contents of the output shapefiles
161161
# Load the raster and perform additional checks
162-
output_raster = QgsRasterLayer(results["OUTPUT_FOLDER"], "Output Raster")
162+
output_raster = QgsRasterLayer(results["OUTPUT_RASTER"], "Output Raster")
163163
self.assertTrue(output_raster.isValid(), "Output raster layer is not valid.")
164164

165165
def test_algorithm_exec_long(self):
@@ -177,7 +177,7 @@ def test_algorithm_exec_long(self):
177177

178178
# Verify results
179179
# For example, check if output shapefiles exist
180-
self.assertTrue(Path(results["OUTPUT_FOLDER"]).exists())
180+
self.assertTrue(Path(results["OUTPUT_RASTER"]).exists())
181181

182182
# Further checks can include verifying the contents of the output shapefiles
183183

@@ -195,7 +195,7 @@ def test_output_raster_values_at_points(self):
195195
)
196196

197197
# Load the output layer for verification
198-
output_layer = QgsRasterLayer(results["OUTPUT_FOLDER"], "Output Corners")
198+
output_layer = QgsRasterLayer(results["OUTPUT_RASTER"], "Output Corners")
199199

200200
for point_name, (x, y, expected_value) in self.test_points.items():
201201
point = QgsPointXY(x, y)

0 commit comments

Comments
 (0)