Skip to content

Commit 806c995

Browse files
committed
add sentinel1 item-type and fix test breakage
and update test expectation
1 parent ed73ef9 commit 806c995

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

planet/scripts/item_asset_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# In case the API fails to respond or takes too long.
1212
DEFAULT_ITEM_TYPES = [
1313
"PSScene4Band", "PSScene3Band", "REScene", "SkySatScene",
14-
"REOrthoTile", "Sentinel2L1C", "PSOrthoTile", "Landsat8L1G"]
14+
"REOrthoTile", "Sentinel2L1C", "PSOrthoTile", "Landsat8L1G", "Sentinel1"]
1515

1616
DEFAULT_ASSET_TYPES = [
1717
"analytic", "analytic_b1", "analytic_b10", "analytic_b11", "analytic_b12",

tests/test_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def test_item_type():
3333
check('all', get_item_types())
3434
check('psscene', ['PSScene3Band', 'PSScene4Band'])
3535
check('Sentinel2L1C', ['Sentinel2L1C'])
36-
check('psscene,sent', ['PSScene3Band', 'PSScene4Band', 'Sentinel2L1C'])
36+
check('psscene,sent', ['PSScene3Band', 'PSScene4Band',
37+
'Sentinel1', 'Sentinel2L1C'])
3738

3839
with pytest.raises(Exception) as e:
3940
ItemType().convert('x', None, None)

0 commit comments

Comments
 (0)