Skip to content

Commit

Permalink
TESTS: Added stackstac_kw tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davemlz committed Jan 21, 2024
1 parent d91ee32 commit 6d37032
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_cubo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6d37032

Please sign in to comment.