Skip to content

Commit

Permalink
update sensitivity unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarkowitz committed Jul 18, 2024
1 parent 2c71fdf commit f3d0f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mne_qt_browser/tests/test_pg_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f3d0f26

Please sign in to comment.