Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christinahedges committed Jan 2, 2025
1 parent 667386d commit bb81040
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_catalogs_idsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,31 @@ def test_id_query():
assert len(tic_result) == 1
assert tic_result["TIC"].values == tic

tic = 299096513
tic_result = query_id(tic, output_catalog="TIC")
assert len(tic_result) == 1
assert tic_result["TIC"].values == tic

kic = 12644769
kic_result = query_id(kic, output_catalog="kic")
assert len(kic_result) == 1
assert kic_result["KIC"].values == kic

kic = 12644769
kic_result = query_id(kic, output_catalog="KIC")
assert len(kic_result) == 1
assert kic_result["KIC"].values == kic

epic = 201563164
epic_result = query_id(epic, output_catalog="epic")
assert len(epic_result) == 1
assert epic_result["ID"].values == epic

epic = 201563164
epic_result = query_id(epic, output_catalog="EPIC")
assert len(epic_result) == 1
assert epic_result["ID"].values == epic

gaia = 2133452475178900736
gaia_result = query_id(gaia, output_catalog="gaiadr3")
assert len(gaia_result) == 1
Expand Down

0 comments on commit bb81040

Please sign in to comment.