Skip to content

Commit

Permalink
Add extra test to check halfpoint
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Havlin <[email protected]>
  • Loading branch information
cphyc and chrishavlin committed Oct 3, 2024
1 parent 70a5714 commit b080a59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yt/data_objects/tests/test_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,6 @@ def test_get_by_key(FakeDataset, fake_datasets):

with pytest.raises(ValueError):
ts.get_by_redshift(1000, tolerance=0.1)

assert sfile_list[0] == ts.get_by_redshift(1/2, prefer='smaller').filename
assert sfile_list[1] == ts.get_by_redshift(1/2, prefer='larger').filename

0 comments on commit b080a59

Please sign in to comment.