Skip to content

Commit 21eb076

Browse files
committed
assert that there are products to feed through get_cloud_uri
1 parent a550e79 commit 21eb076

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

astroquery/mast/tests/test_mast_remote.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,21 @@ def test_observations_download_file(self, tmpdir):
294294
result = mast.Observations.download_file(uri)
295295
assert result == ('COMPLETE', None, None)
296296

297-
def test_get_cloud_uri(self, )
298-
test_obs_id = '2003600312'
297+
def test_get_cloud_uri(self)
298+
test_obs_id = '44308'
299299

300300
# get a product list
301301
product = mast.Observations.get_product_list(test_obs_id)
302302

303+
assert len(product) > 0, 'No products found for OBSID {}. Unable to move forward with getting URIs from the cloud.'.format(test_obs_id)
304+
303305
# enable access to public AWS S3 bucket
304306
mast.Observations.enable_cloud_dataset()
305307

306308
# get uri
307309
mast.Observations.get_cloud_uri(product)
308310

309-
def test_get_cloud_uris(self, )
311+
#def test_get_cloud_uris(self, )
310312

311313
######################
312314
# CatalogClass tests #

0 commit comments

Comments
 (0)