Skip to content

Commit cebeb4c

Browse files
author
Taher Chegini
committed
MNT: Update the expected values based on the changes in the web service. [skip ci]
1 parent 1371b06 commit cebeb4c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

py3dep/py3dep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,10 +691,10 @@ def query_3dep_sources(
691691
>>> bbox = (-69.77, 45.07, -69.31, 45.45)
692692
>>> src = py3dep.query_3dep_sources(bbox)
693693
>>> src.groupby("dem_res")["OBJECTID"].count().to_dict()
694-
{'10m': 8, '1m': 3, '30m': 8}
694+
{'10m': 8, '1m': 2, '30m': 8}
695695
>>> src = py3dep.query_3dep_sources(bbox, res="1m")
696696
>>> src.groupby("dem_res")["OBJECTID"].count().to_dict()
697-
{'1m': 3}
697+
{'1m': 2}
698698
"""
699699
if not isinstance(bbox, Sequence) or len(bbox) != 4:
700700
raise InputTypeError("bbox", "a tuple of length 4")

tests/test_py3dep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_fill_depressions():
8787

8888
@pytest.mark.parametrize(
8989
("source", "expected"),
90-
[("tnm", 356.093), ("tep", 356.139)],
90+
[("tnm", 356.589), ("tep", 356.139)],
9191
)
9292
def test_bycoords(source, expected):
9393
coords = [(-7766049.664788851, 5691929.739021257)]
@@ -142,8 +142,8 @@ def test_query_3dep_source():
142142
res_all = src.groupby("dem_res")["OBJECTID"].count().to_dict()
143143
src = py3dep.query_3dep_sources(GEOM.bounds, res="1m")
144144
res_1m = src.groupby("dem_res")["OBJECTID"].count().to_dict()
145-
assert res_all == {"10m": 8, "1m": 3, "30m": 8}
146-
assert res_1m == {"1m": 3}
145+
assert res_all == {"10m": 8, "1m": 2, "30m": 8}
146+
assert res_1m == {"1m": 2}
147147

148148

149149
class TestCLI:

0 commit comments

Comments
 (0)