Skip to content

Commit

Permalink
fixing var name in test script and remove function call
Browse files Browse the repository at this point in the history
  • Loading branch information
mvexel committed Apr 6, 2018
1 parent b77865a commit 198aeb2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ def test_initialize_api():
def test_geojson():
api = overpass.API(debug=True)

MapQuery = overpass.MapQuery(37.86517, -122.31851, 37.86687, -122.31635)
print MapQuery
osm_geo = api.get(MapQuery)
map_query = overpass.MapQuery(37.86517, -122.31851, 37.86687, -122.31635)
osm_geo = api.get(map_query)
print osm_geo
assert len(osm_geo['features']) > 1

osm_geo = api.get('node(area:3602758138)[amenity=cafe]')
assert len(osm_geo['features']) > 1

test_geojson()

0 comments on commit 198aeb2

Please sign in to comment.