Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions lib/cluster/tests/lib_cluster_exec_ctypes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,10 @@ def test_exec_separates_two_well_separated_groups(libgis_without_session) -> Non
signatures = sorted(
(cluster.S.sig[c].mean[0], cluster.S.sig[c].mean[1]) for c in range(2)
)
assert signatures == pytest.approx(
[
(band_mean(GROUP_A, 0), band_mean(GROUP_A, 1)),
(band_mean(GROUP_B, 0), band_mean(GROUP_B, 1)),
]
)
assert signatures == [
pytest.approx((band_mean(GROUP_A, 0), band_mean(GROUP_A, 1))),
pytest.approx((band_mean(GROUP_B, 0), band_mean(GROUP_B, 1))),
]
for c in range(2):
assert cluster.S.sig[c].npoints == len(GROUP_A)
assert cluster.S.sig[c].status == 1
Expand Down
2 changes: 1 addition & 1 deletion vector/v.proj/tests/v_proj_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def test_smax_zero_matches_per_vertex_path(reprojection_session):
batch = read_line_coords(tools, "batch")
per_vertex = read_line_coords(tools, "per_vertex")
assert len(batch) == 3
assert batch == pytest.approx(per_vertex)
assert batch == [pytest.approx(xy) for xy in per_vertex]
Loading