Skip to content

Commit

Permalink
increase tests pause to prevent opentopodata rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing authored Dec 9, 2024
1 parent 1113f0d commit 5513442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_osmnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_elevation() -> None:
ox.settings.elevation_url_template = (
"https://api.opentopodata.org/v1/aster30m?locations={locations}&key={key}"
)
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0.5)
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=1)

# same thing again, to hit the cache
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0)
Expand Down

0 comments on commit 5513442

Please sign in to comment.