From c423af70043858e1a206d276ae6785256c8e98d1 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Wed, 20 Nov 2024 19:11:46 -0500 Subject: [PATCH] Update dialog tests for slider changes. --- glue_ar/jupyter/tests/test_dialog.py | 4 ++-- glue_ar/qt/tests/test_dialog.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glue_ar/jupyter/tests/test_dialog.py b/glue_ar/jupyter/tests/test_dialog.py index f6ea399..a778b85 100644 --- a/glue_ar/jupyter/tests/test_dialog.py +++ b/glue_ar/jupyter/tests/test_dialog.py @@ -97,14 +97,14 @@ def test_widgets_for_property(self): widget = int_widgets[0] assert isinstance(widget, Slider) assert widget.label == "Int CB" - assert widget.value == 2 + assert widget.v_model == 2 float_widgets = self.dialog.widgets_for_property(state, "cb_float", "Float CB") assert len(float_widgets) == 1 widget = float_widgets[0] assert isinstance(widget, Slider) assert widget.label == "Float CB" - assert widget.value == 0.7 + assert widget.v_model == 0.7 bool_widgets = self.dialog.widgets_for_property(state, "cb_bool", "Bool CB") assert len(bool_widgets) == 1 diff --git a/glue_ar/qt/tests/test_dialog.py b/glue_ar/qt/tests/test_dialog.py index 8c94cf7..65953d8 100644 --- a/glue_ar/qt/tests/test_dialog.py +++ b/glue_ar/qt/tests/test_dialog.py @@ -81,7 +81,7 @@ def test_widgets_for_property(self): assert isinstance(label, QLabel) assert label.text() == "Int CB:" assert isinstance(slider, QSlider) - assert slider.value() == 2 + assert slider.value() == 1 # 2 is the second (index 1) step value assert isinstance(value_label, QLabel) assert value_label.text() == "2"