From 04bf9993129997426084772246bfc4697691d713 Mon Sep 17 00:00:00 2001 From: Hatice Karatay Date: Wed, 25 Dec 2024 23:15:47 -0500 Subject: [PATCH] Adjust test assertions --- jdaviz/configs/imviz/tests/test_catalogs.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jdaviz/configs/imviz/tests/test_catalogs.py b/jdaviz/configs/imviz/tests/test_catalogs.py index 3cb104b18e..70c6353d08 100644 --- a/jdaviz/configs/imviz/tests/test_catalogs.py +++ b/jdaviz/configs/imviz/tests/test_catalogs.py @@ -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):