Skip to content

Commit

Permalink
relevant test added
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Jan 3, 2025
1 parent 30754cf commit 88c8fa5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/hppt_view/test_basegui.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ def test_Selector_widget(qtbot):
assert SELWidget.sc_rb.text() == "Single C&rystal"


def test_Selector_widget_powder_mode():
"""Test the Powder Mode in Selector widget when the radio button is pressed"""
view = hppt_view.HyspecPPTView()
view.SelW.powder_rb.setChecked(True)

assert not view.SCW.isVisibleTo(view)
assert view.CW.modQ_edit.isEnabled()


def test_switch_to_SC():
"""Test switch_to_SC() set SingleCrystalWidget visible"""
view = hppt_view.HyspecPPTView()
Expand Down

0 comments on commit 88c8fa5

Please sign in to comment.