Skip to content

Commit

Permalink
Update test_getbusdata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ni1o1 committed Oct 8, 2022
1 parent fed0633 commit 3821606
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/transbigdata/tests/test_getbusdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def test_getadmin(self):
admin, _ = tbd.getadmin(
'深圳市', ak='2305ee7c82c147f11aac58fcc5bb7f19',jscode = '694338a096c6c50b74e5d74f411c9ab5', subdistricts=True)
except: # pragma: no cover
pass # pragma: no cover
t+=1
t+=1 # pragma: no cover
assert '深圳市' in admin['name'].sum()

def test_getisochrone(self):
Expand All @@ -41,8 +40,8 @@ def test_getisochrone(self):
access_token='pk.eyJ1IjoibHByMTIxNDc5IiwiYSI6ImNrd2c0YXVydTBremQyb3V0cHVhMml5anAifQ.Y-q937VgT0diVxukUqwofw',
mode='walking')
except: # pragma: no cover
pass # pragma: no cover
t+=1
t+=1 # pragma: no cover

import geopandas as gpd
assert type(result) == gpd.geodataframe.GeoDataFrame

Expand All @@ -54,7 +53,7 @@ def test_getisochrone(self):
121.212403, 31.282477, 60, ak='2305ee7c82c147f11aac58fcc5bb7f19', jscode = '694338a096c6c50b74e5d74f411c9ab5',
mode=0)
except: # pragma: no cover
pass # pragma: no cover
t+=1
t+=1 # pragma: no cover

import geopandas as gpd
assert type(result) == gpd.geodataframe.GeoDataFrame

0 comments on commit 3821606

Please sign in to comment.