From ca8b47d3e9eee4b28afdf3130890806929c087d0 Mon Sep 17 00:00:00 2001 From: cristianchiriac <80774326+cristianchiriac@users.noreply.github.com> Date: Thu, 8 Oct 2026 07:51:31 +0300 Subject: [PATCH] TST: allow 10 m of Open-Elevation model drift in the elevation test Since early October the public Open-Elevation API returns 40.8 m for the Eiffel Tower (was ~34 m) and 1402.95 m for Spaceport America (was ~1401 m), so the scheduled integration test fails although the lookup works. --- tests/integration/environment/test_environment.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/environment/test_environment.py b/tests/integration/environment/test_environment.py index 1696ecccf..0584834f1 100644 --- a/tests/integration/environment/test_environment.py +++ b/tests/integration/environment/test_environment.py @@ -21,8 +21,11 @@ def test_set_elevation_open_elevation( # either successfully gets the elevation or raises RuntimeError try: example_plain_env.set_elevation(elevation="Open-Elevation") + # The value depends on the elevation model behind the public API, which + # changes over time (e.g. 34 m -> 40.8 m at the Eiffel Tower in October + # 2026), so only check that it is plausible for the location. assert example_plain_env.elevation == pytest.approx( - theoretical_elevation, abs=1 + theoretical_elevation, abs=10 ), "The Open-Elevation API returned an unexpected value for the elevation" except RuntimeError: pass # Ignore the error and pass the test