Skip to content

Commit

Permalink
requested changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Jun 24, 2022
1 parent 168be80 commit 4a9da90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test_geodesy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def test_is_within_radius_km():


@pytest.mark.xfail(
reason="fails in CI when geonum can not download 'srtm' data", raises=FileNotFoundError
reason="fails in CI when geonum can not download 'srtm' data",
raises=FileNotFoundError,
strict=False,
)
def test_srtm_altitude():
assert geodesy.get_topo_altitude(TEST_LAT, TEST_LON) == pytest.approx(207)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def test_extract_latlon_dataarray():
lon = [1, 15, 18]
subset = helpers.extract_latlon_dataarray(data, lat, lon, check_domain=True)
assert isinstance(subset, xr.DataArray)
assert len(subset.lat) == len(lat) - 1 and len(subset.lon) == len(lon) - 1
assert len(subset.lat) == len(lat) - 1
assert len(subset.lon) == len(lon) - 1


def test_extract_latlon_dataarray_no_matches():
Expand Down

0 comments on commit 4a9da90

Please sign in to comment.