Skip to content

Commit

Permalink
Fix failing tests (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton authored Nov 27, 2023
1 parent 007c8dd commit 4439b57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/api_resolver_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_simbad_resolver() -> None:
cols = [
'name', 'oid', 'oname', 'otype',
'jpos', 'jradeg', 'jdedeg',
'refPos', 'Vel', 'MType', 'nrefs'
'refPos', 'MType', 'nrefs'
]
for col in cols:
assert col in pdf.columns, [col, pdf.columns]
Expand Down
6 changes: 3 additions & 3 deletions tests/api_ssocand_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ def test_time_boundaries() -> None:
>>> test_time_boundaries()
"""
pdf = ssocandsearch(
kind='lightcurves', start_date='2020-01-01', stop_date='2020-12-31'
kind='lightcurves', start_date='2023-01-01', stop_date='2023-12-31'
)

assert not pdf.empty

assert np.alltrue(pdf['d:jd'].values >= Time('2020-01-01', format='iso').jd)
assert np.alltrue(pdf['d:jd'].values <= Time('2020-12-31', format='iso').jd)
assert np.alltrue(pdf['d:jd'].values >= Time('2023-01-01', format='iso').jd)
assert np.alltrue(pdf['d:jd'].values <= Time('2023-12-31', format='iso').jd)


if __name__ == "__main__":
Expand Down

0 comments on commit 4439b57

Please sign in to comment.