From 6d37032b435d034b0043da5ead3a076c8cf2051f Mon Sep 17 00:00:00 2001 From: davemlz Date: Sun, 21 Jan 2024 17:09:11 +0100 Subject: [PATCH] TESTS: Added stackstac_kw tests --- tests/test_cubo.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/test_cubo.py b/tests/test_cubo.py index d070e7e..ab8ac12 100644 --- a/tests/test_cubo.py +++ b/tests/test_cubo.py @@ -24,6 +24,21 @@ def test_planetary_computer(self): ) self.assertIsInstance(da, xr.DataArray) + def test_stackstac(self): + """Test the cubo with stackstac kwargs""" + da = cubo.create( + lat=50, + lon=10, + collection="sentinel-2-l2a", + bands=["B02", "B03", "B04"], + start_date="2021-06-01", + end_date="2021-06-10", + edge_size=32, + resolution=10, + stackstac_kw=dict(xy_coords='center') + ) + self.assertIsInstance(da, xr.DataArray) + # def test_element84(self): # """Test the cubo""" # da = cubo.create(