We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_set_elevation_open_elevation
1 parent fdb1791 commit 443b10eCopy full SHA for 443b10e
tests/integration/test_environment.py
@@ -18,11 +18,13 @@ def test_set_elevation_open_elevation(
18
example_plain_env.set_location(lat, lon)
19
20
# either successfully gets the elevation or raises RuntimeError
21
- with pytest.raises(RuntimeError):
+ try:
22
example_plain_env.set_elevation(elevation="Open-Elevation")
23
assert example_plain_env.elevation == pytest.approx(
24
theoretical_elevation, abs=1
25
- )
+ ), "The Open-Elevation API returned an unexpected value for the elevation"
26
+ except RuntimeError:
27
+ pass # Ignore the error and pass the test
28
29
30
@patch("matplotlib.pyplot.show")
0 commit comments