Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nschanche committed Oct 11, 2024
1 parent d04f3e7 commit 3c7d716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def test_FFI_retrieval():
def test_tesscut():
"""Can we find and download TESS tesscut tpfs"""
results = TESSSearch("Kepler 16b", hlsp=False, sector=14)
assert len(results) == 9
assert len(results) == 12
assert len(results.cubedata) == 2
manifest = results.cubedata[1].download()
assert len(manifest) == 1
Expand Down Expand Up @@ -556,9 +556,9 @@ def test_tess_clouduris():
"""regression test - do tesscut/nan's in dataURI column break cloud uri fetching"""
toi = TESSSearch("TOI 1161", sector=14)
# 17 products should be returned
assert len(toi.cloud_uris) == 17
assert len(toi.cloud_uris) == 20
# 5 of them should have cloud uris
assert np.sum((toi.cloud_uris.values != None).astype(int)) == 5
assert np.sum((toi.cloud_uris.values != None).astype(int)) == 6


def test_tess_return_clouduri_not_download():
Expand Down

0 comments on commit 3c7d716

Please sign in to comment.