diff --git a/mne_qt_browser/tests/test_pg_specific.py b/mne_qt_browser/tests/test_pg_specific.py index f7f6eb35..a9e2ed92 100644 --- a/mne_qt_browser/tests/test_pg_specific.py +++ b/mne_qt_browser/tests/test_pg_specific.py @@ -297,15 +297,15 @@ def test_pg_settings_dialog(raw_orig, pg_backend): ch_scale_spinbox = fig.mne.fig_settings.ch_scaling_spinboxes[ch_type_test] ch_sens_spinbox = fig.mne.fig_settings.ch_sensitivity_spinboxes[ch_type_test] - scaling_spinbox_value = round(ch_spinbox.value()) - sensitivity_spinbox_value = round(ch_sens_spinbox.value()) + scaling_spinbox_value = ch_spinbox.value() + sensitivity_spinbox_value = ch_sens_spinbox.value() scaling_value = fig.mne.scalings[ch_type_test] new_scaling_spinbox_value = scaling_spinbox_value * 2 new_sensitivity_spinbox_value = sensitivity_spinbox_value * 2 ch_scale_spinbox.setValue(new_scaling_spinbox_value) new_scaling_value = fig.mne.scalings[ch_type_test] assert scaling_value != new_scaling_value - assert round(ch_sens_spinbox.value()) == round(new_sensitivity_spinbox_value) + assert round(ch_sens_spinbox.value(), 1) == round(new_sensitivity_spinbox_value, 1) def test_pg_help_dialog(raw_orig, pg_backend):