Skip to content

Commit

Permalink
Adjust test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Dec 26, 2024
1 parent 0b22f24 commit 04bf999
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions jdaviz/configs/imviz/tests/test_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,14 @@ def test_plugin_image_with_result(self, imviz_helper, tmp_path):
# so test results don't change
catalogs_plugin.zoom_to_selected(padding=50 / 2048)

assert imviz_helper.viewers['imviz-0']._obj.state.x_min == 1022.5757000000001
assert imviz_helper.viewers['imviz-0']._obj.state.x_max == 1122.5757
assert imviz_helper.viewers['imviz-0']._obj.state.y_min == 704.7727144165947
assert imviz_helper.viewers['imviz-0']._obj.state.y_max == 745.8271655834053
assert_allclose(
imviz_helper.viewers['imviz-0']._obj.state.x_min, 1022.57570000, atol=0.1)
assert_allclose(imviz_helper.viewers['imviz-0']._obj.state.x_max,
1122.5757, atol=0.1)
assert_allclose(
imviz_helper.viewers['imviz-0']._obj.state.y_min, 675.29611, atol=0.1)
assert_allclose(
imviz_helper.viewers['imviz-0']._obj.state.y_max, 775.29611, atol=0.1)


def test_from_file_parsing(imviz_helper, tmp_path):
Expand Down

0 comments on commit 04bf999

Please sign in to comment.