Skip to content

Commit d36553f

Browse files
committed
Remove asyncio mark
1 parent 93d04cd commit d36553f

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/_async/test_parser.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from geojson_aoi._async.parser import parse_aoi_async
99

10-
pytestmark = pytest.mark.asyncio
1110

1211
def is_featcol_nested_polygon(geojson) -> bool:
1312
"""Check if the data is a FeatureCollection with nested Polygon."""
@@ -25,7 +24,6 @@ async def test_polygon(db, polygon_geojson):
2524
assert len(result["features"]) == 1
2625

2726

28-
@pytest.mark.asyncio
2927
async def test_polygon_with_holes(db, polygon_holes_geojson):
3028
"""A single Polygon with holes, should remain unchanged."""
3129
result = await parse_aoi_async(db, polygon_holes_geojson)
@@ -35,7 +33,6 @@ async def test_polygon_with_holes(db, polygon_holes_geojson):
3533
assert len(result["features"][0]["geometry"]["coordinates"]) == 3
3634

3735

38-
@pytest.mark.asyncio
3936
@pytest.mark.skip(reason="Test case for future feature.")
4037
async def test_polygon_merge_with_holes(db, polygon_holes_geojson):
4138
"""A single Polygon with holes, where the holes should be removed."""
@@ -46,15 +43,13 @@ async def test_polygon_merge_with_holes(db, polygon_holes_geojson):
4643
assert len(result["features"][0]["geometry"]["coordinates"]) == 1
4744

4845

49-
@pytest.mark.asyncio
5046
@pytest.mark.skip(reason="Test case for future feature.")
5147
async def test_polygon_with_overlaps_merged(db, polygon_overlaps_geojson):
5248
"""Merge overlapping polygons within multipolygon."""
5349
result = await parse_aoi_async(db, polygon_overlaps_geojson, merge=True)
5450
assert len(result["features"]) == 1
5551

5652

57-
@pytest.mark.asyncio
5853
async def test_z_dimension_polygon(db, polygon_geojson):
5954
"""A single Polygon, with z-dimension coord stripped out."""
6055
geojson_data = {
@@ -70,23 +65,20 @@ async def test_z_dimension_polygon(db, polygon_geojson):
7065
}
7166

7267

73-
@pytest.mark.asyncio
7468
async def test_feature(db, feature_geojson):
7569
"""A Polygon nested in a Feature."""
7670
result = await parse_aoi_async(db, feature_geojson)
7771
assert is_featcol_nested_polygon(result)
7872
assert len(result["features"]) == 1
7973

8074

81-
@pytest.mark.asyncio
8275
async def test_feature_collection(db, featcol_geojson):
8376
"""A Polygon nested in a Feature, inside a FeatureCollection."""
8477
result = await parse_aoi_async(db, featcol_geojson)
8578
assert is_featcol_nested_polygon(result)
8679
assert len(result["features"]) == 1
8780

8881

89-
@pytest.mark.asyncio
9082
async def test_feature_collection_multiple_geoms(db, feature_geojson):
9183
"""Multiple Polygon nested in Features, inside a FeatureCollection.
9284
@@ -101,7 +93,6 @@ async def test_feature_collection_multiple_geoms(db, feature_geojson):
10193
assert len(result["features"]) == 3
10294

10395

104-
@pytest.mark.asyncio
10596
async def test_nested_geometrycollection(db, geomcol_geojson):
10697
"""A GeometryCollection nested inside a FeatureCollection."""
10798
geojson_data = {
@@ -119,7 +110,6 @@ async def test_nested_geometrycollection(db, geomcol_geojson):
119110
assert len(result["features"]) == 1
120111

121112

122-
@pytest.mark.asyncio
123113
async def test_multiple_nested_geometrycollection(db, geomcol_geojson):
124114
"""Multiple GeometryCollection nested inside a FeatureCollection."""
125115
geojson_data = {
@@ -155,7 +145,6 @@ async def test_multiple_nested_geometrycollection(db, geomcol_geojson):
155145
# assert len(result["features"]) == 3
156146

157147

158-
@pytest.mark.asyncio
159148
@pytest.mark.skip(reason="We are not doing the merge feature for now.")
160149
async def test_featcol_merge_multiple_polygons(db):
161150
"""Merge multiple polygons inside a FeatureCollection."""
@@ -185,7 +174,6 @@ async def test_featcol_merge_multiple_polygons(db):
185174
assert len(result["features"]) == 1
186175

187176

188-
@pytest.mark.asyncio
189177
async def test_featcol_no_merge_polygons(db):
190178
"""Do not merge multiple polygons inside a FeatureCollection."""
191179
geojson_data = {
@@ -214,7 +202,6 @@ async def test_featcol_no_merge_polygons(db):
214202
assert len(result["features"]) == 2
215203

216204

217-
@pytest.mark.asyncio
218205
@pytest.mark.skip(reason="We are not doing the merge feature for now.")
219206
async def test_merge_multipolygon(db, multipolygon_geojson):
220207
"""Merge multiple polygons inside a MultiPolygon."""
@@ -228,15 +215,13 @@ async def test_merge_multipolygon(db, multipolygon_geojson):
228215
# assert False
229216

230217

231-
@pytest.mark.asyncio
232218
async def test_multipolygon_no_merge(db, multipolygon_geojson):
233219
"""Do not merge multiple polygons inside a MultiPolygon."""
234220
result = await parse_aoi_async(db, multipolygon_geojson)
235221
assert is_featcol_nested_polygon(result)
236222
assert len(result["features"]) == 3
237223

238224

239-
@pytest.mark.asyncio
240225
async def test_multipolygon_with_holes(db, multipolygon_holes_geojson):
241226
"""MultiPolygon --> Polygon, with holes remaining."""
242227
# FIXME this should not removed the holes from the polygon geom
@@ -247,7 +232,6 @@ async def test_multipolygon_with_holes(db, multipolygon_holes_geojson):
247232
assert len(result["features"]) == 1
248233

249234

250-
@pytest.mark.asyncio
251235
@pytest.mark.skip(reason="We are not doing the merge feature for now.")
252236
async def test_multipolygon_with_holes_merged(db, multipolygon_holes_geojson):
253237
"""Merge multipolygon, including holes."""
@@ -256,7 +240,6 @@ async def test_multipolygon_with_holes_merged(db, multipolygon_holes_geojson):
256240
assert len(result["features"]) == 1
257241

258242

259-
@pytest.mark.asyncio
260243
async def test_feature_with_property(db, feature_with_property_geojson):
261244
"""Test a Feature with a single property."""
262245
result = await parse_aoi_async(db, feature_with_property_geojson)
@@ -266,7 +249,6 @@ async def test_feature_with_property(db, feature_with_property_geojson):
266249
assert feature["properties"] == feature_with_property_geojson["properties"]
267250

268251

269-
@pytest.mark.asyncio
270252
async def test_featcol_different_properties(
271253
db, feature_with_property_geojson, feature_with_properties_geojson
272254
):
@@ -291,7 +273,6 @@ async def test_featcol_different_properties(
291273
)
292274

293275

294-
@pytest.mark.asyncio
295276
async def test_geometrycollection_mixed_geoms(db, geometrycollection_mixed_geoms):
296277
"""Test a GeometryCollection that contains all kinds of geoms."""
297278
result = await parse_aoi_async(db, geometrycollection_mixed_geoms)
@@ -312,7 +293,6 @@ async def test_geometrycollection_mixed_geoms(db, geometrycollection_mixed_geoms
312293
}
313294

314295

315-
@pytest.mark.asyncio
316296
async def test_featurecollection_mixed_geoms(db, featurecollection_mixed_geoms):
317297
"""Test a FeatureCollection that contains all kinds of geoms."""
318298
result = await parse_aoi_async(db, featurecollection_mixed_geoms)
@@ -340,7 +320,6 @@ async def test_featurecollection_mixed_geoms(db, featurecollection_mixed_geoms):
340320
}
341321

342322

343-
@pytest.mark.asyncio
344323
async def test_invalid_input(db):
345324
"""Invalud input for parse_aoi_async function."""
346325
with pytest.raises(
@@ -355,7 +334,6 @@ async def test_invalid_input(db):
355334
await parse_aoi_async(db, {"type": "Point"})
356335

357336

358-
@pytest.mark.asyncio
359337
async def test_file_input(db, tmp_path):
360338
"""GeoJSON file input for parse_aoi_async function."""
361339
geojson_file = tmp_path / "test.geojson"
@@ -379,7 +357,6 @@ async def test_file_input(db, tmp_path):
379357
assert len(result["features"]) == 1
380358

381359

382-
@pytest.mark.asyncio
383360
async def test_no_warnings_valid_crs(db):
384361
"""Test including a valid CRS."""
385362
geojson_data = {
@@ -411,7 +388,6 @@ async def test_no_warnings_valid_crs(db):
411388
assert len(result["features"]) == 1
412389

413390

414-
@pytest.mark.asyncio
415391
async def test_warnings_raised_invalid_crs(db):
416392
"""Test including an invalid CRS, raising warnings."""
417393
geojson_data = {
@@ -432,7 +408,6 @@ async def test_warnings_raised_invalid_crs(db):
432408
await parse_aoi_async(db, geojson_data)
433409

434410

435-
@pytest.mark.asyncio
436411
async def test_warnings_raised_invalid_coords(db):
437412
"""Test including an invalid coordinates, raising warnings."""
438413
geojson_data = {

0 commit comments

Comments
 (0)