diff --git a/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py b/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py index 35b62e08..8fe2fb49 100644 --- a/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py +++ b/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py @@ -17,13 +17,12 @@ def _zeroed_z(self, points) -> list[list[float]]: """Returns the points with 0.0 for z values.""" return [[point[0], point[1], 0.0] for point in points] - def _run_test(self, x1, y1, x2, y2, points, polys, expected_poly_ids, expected_t_values, expected_points): + def _run_test(self, x1, y1, x2, y2, points, polys, expected_poly_ids, expected_t_vals, expected_points): """Runs the test.""" mpi = grid.geometry.MultiPolyIntersector(points, polys) - poly_ids, t_values, pts = mpi.traverse_line_segment(x1, y1, x2, y2) + poly_ids, t_vals, pts = mpi.traverse_line_segment(x1, y1, x2, y2) assert poly_ids == expected_poly_ids, str(f'Expected {expected_poly_ids}. Got {poly_ids}.') - assert (np.testing.assert_allclose(t_values, expected_t_values), - str(f'Expected {expected_t_values}. Got {t_values}.')) + assert np.testing.assert_allclose(t_vals, expected_t_vals), str(f'Expected {expected_t_vals}. Got {t_vals}.') for point, expected_point in zip(self._zeroed_z(pts), self._zeroed_z(expected_points)): assert np.testing.assert_allclose(point, expected_point)