From f4e31dcdbe45a8d8c398f761913d274ded450928 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Thu, 11 Feb 2021 18:50:32 -0500 Subject: [PATCH] update cogeo-mosaic requirements and fix tests results --- setup.py | 2 +- tests/routes/test_mosaic.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index dfb668d92..3baf91aea 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ "morecantile", "rio-cogeo>=2.1,<2.2", "rio-tiler>=2.0.1,<2.1", - "cogeo-mosaic>=3.0.0b1,<3.1", + "cogeo-mosaic>=3.0.0rc1,<3.1", "rasterio", "pydantic", "numpy", diff --git a/tests/routes/test_mosaic.py b/tests/routes/test_mosaic.py index 07a60a805..8b9bb3c2a 100644 --- a/tests/routes/test_mosaic.py +++ b/tests/routes/test_mosaic.py @@ -98,7 +98,8 @@ def test_point(app): assert response.status_code == 200 body = response.json() assert len(body["values"]) == 1 - assert body["values"][0]["values"] == [9943, 9127, 9603] + assert body["values"][0][0].endswith(".tif") + assert body["values"][0][1] == [9943, 9127, 9603] timing = response.headers["server-timing"] assert "mosaicread;dur" in timing assert "dataread;dur" in timing