diff --git a/tests/test_sen2nbar.py b/tests/test_sen2nbar.py index 917681c..8f8888d 100644 --- a/tests/test_sen2nbar.py +++ b/tests/test_sen2nbar.py @@ -79,6 +79,22 @@ def test_cubo_not_all_angles(self): ) self.assertIsInstance(da, xr.DataArray) + def test_cubo_not_all_angles_duplicated_indices(self): + """Test the nbar_cubo""" + da = nbar_cubo( + cubo.create( + lat=51.079225, + lon=10.452173, + collection="sentinel-2-l2a", + bands=["B02", "B03", "B04"], + start_date="2016-01-01", + end_date="2016-03-01", + edge_size=512, + resolution=10, + ) + ) + self.assertIsInstance(da, xr.DataArray) + if __name__ == "__main__": unittest.main()