From a4d436c6900edeecfeb96ab29c00248026644e9b Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Sun, 24 Nov 2024 09:01:07 -0800 Subject: [PATCH] increase opentopodata pause to prevent rate limiting in CI tests --- tests/test_osmnx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_osmnx.py b/tests/test_osmnx.py index 78febd75..165f1169 100644 --- a/tests/test_osmnx.py +++ b/tests/test_osmnx.py @@ -282,10 +282,10 @@ 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.01) + _ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0.5) # same thing again, to hit the cache - _ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0.01) + _ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0) # add node elevations from a single raster file (some nodes will be null) rasters = list(Path("tests/input_data").glob("elevation*.tif"))