Skip to content

Commit

Permalink
test(client): remove format bpolys test from client tests
Browse files Browse the repository at this point in the history
addressing #139
  • Loading branch information
SlowMo24 committed Jun 27, 2024
1 parent 47876c7 commit db64b56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 74 deletions.
59 changes: 0 additions & 59 deletions ohsome/test/cassettes/test_client/test_format_bpolys.yaml

This file was deleted.

16 changes: 1 addition & 15 deletions ohsome/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,6 @@ def test_format_bcircles_geodataframe_geometry_error(base_client):
del client


@pytest.mark.vcr
def test_format_bpolys(base_client):
"""
Test whether a GeoDataFrame obejct is formatted correctly for ohsome api.
:return:
"""
bpolys = gpd.read_file(f"{script_path}/data/polygons.geojson")
time = "2018-01-01"
fltr = "amenity=restaurant and type:node"

client = base_client
client.elements.count.post(bpolys=bpolys, time=time, filter=fltr)


@pytest.mark.vcr
def test_format_bboxes_dataframe(base_client):
"""
Expand Down Expand Up @@ -254,7 +240,7 @@ def test_format_bboxes_geodataframe(base_client):

assert (
"Use the 'bpolys' parameter to specify the boundaries using a "
"geopandas.GeoDataFrame." in e_info.value.message
"geopandas object." in e_info.value.message
)


Expand Down

0 comments on commit db64b56

Please sign in to comment.