Skip to content

Commit 334e707

Browse files
committed
include datetime search query value in tests
1 parent a375544 commit 334e707

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_wmts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ def test_wmts_gettile(client, get_assets, rio, app):
273273
},
274274
)
275275
assert response.status_code == 200
276+
assert (get_assets.call_args.kwargs.get('search_query').get('datetime') ==
277+
'2023-01-05T00:00:00Z/2023-01-05T23:59:59Z')
276278

277279
response = app.get(
278280
"/wmts",
@@ -291,6 +293,8 @@ def test_wmts_gettile(client, get_assets, rio, app):
291293
},
292294
)
293295
assert response.status_code == 200
296+
assert (get_assets.call_args.kwargs.get('search_query').get('datetime') ==
297+
'2023-01-05T00:00:00Z/2023-01-05T23:59:59Z')
294298

295299

296300
@patch("rio_tiler.io.rasterio.rasterio")

0 commit comments

Comments
 (0)