Skip to content

Commit

Permalink
Add test for reset_atlas in adjust_moving_image_view
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jun 27, 2024
1 parent b172fd6 commit 01db43b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_adjust_moving_image_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,21 @@ def test_atlas_rotation_changed(
adjust_moving_image_view.adjust_atlas_rotation.click()

assert blocker.args == [10, 20, 30]


def test_atlas_reset_button_click(
qtbot,
adjust_moving_image_view,
):
qtbot.addWidget(adjust_moving_image_view)

with qtbot.waitSignal(
adjust_moving_image_view.atlas_reset_signal, timeout=1000
):
adjust_moving_image_view.atlas_reset_button.click()

assert (
adjust_moving_image_view.adjust_atlas_pitch.value() == 0
and adjust_moving_image_view.adjust_atlas_yaw.value() == 0
and adjust_moving_image_view.adjust_atlas_roll.value() == 0
)

0 comments on commit 01db43b

Please sign in to comment.