Skip to content

Commit

Permalink
edit wrong testnumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Feb 9, 2024
1 parent e7c757c commit 2d16b60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions geovita_processing_plugin/test/test_alg_excavation.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_output_verification_with_all_params(self):
if feature["sv_tot"] > 0.100:
feature_count_sv_tot_greater_than_01 += 1

# Example verification: Check if the counted features match the expected value
# Check if the counted features match the expected value
expected_feature_corner_count = (
11 # Hypothetical expected number of features with sv_tot > 0.1
)
Expand All @@ -225,15 +225,15 @@ def test_output_verification_with_all_params(self):
results["OUTPUT_WALL"], "Output Corners", "ogr"
)

# Iterate over features and count those with sv_tot > 0.1
# Iterate over features and count those with slope_ang > 0.1
feature_count_slope_ang_greater_than_0 = 0
for feature in output_wall_layer.getFeatures():
if feature["slope_ang"] > 0:
feature_count_slope_ang_greater_than_0 += 1

# Example verification: Check if the counted features match the expected value
# Check if the counted features match the expected value
expected_feature_wall_count = (
1273 # Hypothetical expected number of features with sv_tot > 0.1
1273 # Hypothetical expected number of features with slope_ang > 0.1
)
self.assertEqual(
feature_count_slope_ang_greater_than_0,
Expand All @@ -246,15 +246,15 @@ def test_output_verification_with_all_params(self):
results["OUTPUT_BUILDING"], "Output Corners", "ogr"
)

# Iterate over features and count those with sv_tot > 0.1
# Iterate over features and count those with max_sv_tot > 0.1
feature_count_max_sv_tot_greater_than_0 = 0
for feature in output_building_layer.getFeatures():
if feature["max_sv_tot"] > 0:
feature_count_max_sv_tot_greater_than_0 += 1

# Example verification: Check if the counted features match the expected value
expected_feature_building_count = (
168 # Hypothetical expected number of features with sv_tot > 0.1
188 # Hypothetical expected number of features with max_sv_tot > 0
)
self.assertEqual(
feature_count_max_sv_tot_greater_than_0,
Expand Down

0 comments on commit 2d16b60

Please sign in to comment.