@requires_shapely
def test_shapely_to_cf_errors():
    from shapely.geometry import LineString, Point
    geoms = [LineString([[1, 2], [2, 3]]), LineString([[2, 3, 4], [4, 3, 2]])]
    with pytest.raises(NotImplementedError, match='Only point geometries conversion'):
        cfxr.shapely_to_cf(geoms)
    geoms.append(Point(1, 2))
    with pytest.raises(ValueError, match='Mixed geometry types are not supported'):
        cfxr.shapely_to_cf(geoms)
    with pytest.raises(NotImplementedError, match='Only grid mapping longitude_latitude'):
        cfxr.shapely_to_cf([Point(4, 5)], grid_mapping='albers_conical_equal_area')
@requires_shapely
def test_shapely_to_cf_errors():
    from shapely.geometry import LineString, Point
    geoms = [LineString([[1, 2], [2, 3]]), LineString([[2, 3, 4], [4, 3, 2]])]
    with pytest.raises(NotImplementedError, match='Only point geometries conversion'):
        cfxr.shapely_to_cf(geoms)
    geoms.append(Point(1, 2))
    with pytest.raises(ValueError, match='Mixed geometry types are not supported'):
        cfxr.shapely_to_cf(geoms)
    with pytest.raises(NotImplementedError, match='Only grid mapping longitude_latitude'):
        cfxr.shapely_to_cf([Point(4, 5)], grid_mapping='albers_conical_equal_area')