MCPcopy Create free account
hub / github.com/shapely/shapely / test_no_args_array

Function test_no_args_array

shapely/tests/test_constructive.py:73–86  ·  view source on GitHub ↗
(geometry, func)

Source from the content-addressed store, hash-verified

71@pytest.mark.parametrize("geometry", all_types)
72@pytest.mark.parametrize("func", CONSTRUCTIVE_NO_ARGS)
73def test_no_args_array(geometry, func):
74 if (
75 geometry.is_empty
76 and shapely.get_num_geometries(geometry) > 0
77 and func is shapely.node
78 and (
79 (geos39 and geos_version < (3, 9, 3))
80 or (geos310 and geos_version < (3, 10, 3))
81 )
82 ): # GEOS GH-601
83 pytest.xfail("GEOS < 3.9.3 or GEOS < 3.10.3 crashes with empty geometries")
84 actual = func([geometry, geometry])
85 assert actual.shape == (2,)
86 assert actual[0] is None or isinstance(actual[0], Geometry)
87
88
89@pytest.mark.parametrize("geometry", all_types)

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…