Skip to content

Commit

Permalink
STY: Update comment in multistate test
Browse files Browse the repository at this point in the history
  • Loading branch information
nstelter-slac committed Oct 24, 2023
1 parent 49f982f commit bc6e392
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pydm/tests/widgets/test_multistate_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,17 @@ def test_state_change(qtbot, signals, value, expectedColor):
Test the widget's handling of the value changed event.
Expectations:
1. Value coming from the control system is correctly shifted by the predefined value
2. Resulting value should be non-negative
1. Widget state is update to reflect incoming signal value
2. Widgets color after state-update is the correct color set for the new state
Parameters
----------
qtbot : fixture
pytest-qt window for widget testing
signals : fixture
The signals fixture, which provides access signals to be bound to the appropriate slots
value : int
The value to be displayed by the widget
shift : int
The value's bit shift
expected : int
Expected resulting value
Expected resulting color after state-update
"""
pydm_multistate = PyDMMultiStateLEDIndicator()
qtbot.addWidget(pydm_multistate)
Expand Down

0 comments on commit bc6e392

Please sign in to comment.