We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2a57c commit 6ccdbc6Copy full SHA for 6ccdbc6
descarteslabs/tests/test_metadata.py
@@ -190,10 +190,23 @@ def test_products_get(self):
190
def test_bands_get(self):
191
band_id = 'landsat:LC08:PRE:TOAR:red'
192
try:
193
- self.instance.get_band(band_id)
+ band = self.instance.get_band(band_id)
194
+ self.assertEqual(band_id, band['id'])
195
except NotFoundError:
196
pass
197
198
+ def test_derived_bands_get(self):
199
+ band_id = 'derived:ndvi'
200
+ try:
201
+ d_band = self.instance.get_derived_band(band_id)
202
+ self.assertIn('bands', d_band)
203
+ except NotFoundError:
204
+ pass
205
+
206
+ def test_derived_bands_search(self):
207
+ bands = ['red', 'nir']
208
+ bands = self.instance.derived_bands(bands=bands)
209
210
211
if __name__ == '__main__':
212
unittest.main()
0 commit comments