Skip to content

Commit 1f2a002

Browse files
style: auto-format (ruff + oxfmt) [pre-commit.ci]
1 parent dd56e6d commit 1f2a002

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

backend/geolibre_server/tests/test_vector.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ def test_write_geopackage_rejects_aspatial_layer(tmp_path, monkeypatch) -> None:
326326
)
327327

328328
def mock_list_layers(path):
329-
return pd.DataFrame({
330-
"name": ["places", "aspatial_data"],
331-
"geometry_type": ["Polygon", None]
332-
})
329+
return pd.DataFrame(
330+
{"name": ["places", "aspatial_data"], "geometry_type": ["Polygon", None]}
331+
)
332+
333333
monkeypatch.setattr(gpd, "list_layers", mock_list_layers)
334334

335335
with pytest.raises(HTTPException) as exc:

backend/geolibre_server/tests/test_vector_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,10 @@ def test_fix_geometries_leaves_unfixable_unchanged(monkeypatch) -> None:
12021202
# into a valid polygonal area will either raise or return empty. The tool should
12031203
# leave the original unchanged and increment the unfixable count.
12041204
import shapely.validation
1205-
1205+
12061206
def mock_make_valid(geom):
12071207
raise ValueError("Simulated unfixable geometry")
1208-
1208+
12091209
monkeypatch.setattr(shapely.validation, "make_valid", mock_make_valid)
12101210

12111211
degenerate = {

0 commit comments

Comments
 (0)