@requires_shapely
def test_cf_to_shapely_errors(geometry_ds):
    (in_ds, expected) = geometry_ds
    in_ds.geometry_container.attrs['geometry_type'] = 'line'
    with pytest.raises(NotImplementedError, match='Only point geometries conversion'):
        cfxr.cf_to_shapely(in_ds)
    in_ds.geometry_container.attrs['geometry_type'] = 'punkt'
    with pytest.raises(ValueError, match='Valid CF geometry types are '):
        cfxr.cf_to_shapely(in_ds)
@requires_shapely
def test_cf_to_shapely_errors(geometry_ds):
    (in_ds, expected) = geometry_ds
    in_ds.geometry_container.attrs['geometry_type'] = 'line'
    with pytest.raises(NotImplementedError, match='Only point geometries conversion'):
        cfxr.cf_to_shapely(in_ds)
    in_ds.geometry_container.attrs['geometry_type'] = 'punkt'
    with pytest.raises(ValueError, match='Valid CF geometry types are '):
        cfxr.cf_to_shapely(in_ds)