Skip to content

Commit 4838301

Browse files
committed
add test for xmax > xmin bbox
1 parent c36407a commit 4838301

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: tests/api/test_search.py

+15
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,20 @@ def test_search_invalid_bbox(bbox):
151151
Search(collections=["foo"], bbox=bbox)
152152

153153

154+
@pytest.mark.parametrize(
155+
"bbox",
156+
[
157+
(
158+
100.0,
159+
0.0,
160+
-95.0,
161+
1.0,
162+
), # xmin greater than xmax allowed when xmin > 0 and xmax < 0
163+
],
164+
)
165+
def test_search_valid_bbox(bbox):
166+
Search(collections=["foo"], bbox=bbox)
167+
168+
154169
def test_search_none_datetime() -> None:
155170
Search(datetime=None)

0 commit comments

Comments
 (0)