mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
fix(waveform): signals for x device can be defined from gui
This commit is contained in:
@ -119,6 +119,20 @@ def test_curve_setting_refresh(curve_setting_fixture, qtbot):
|
||||
assert curve_setting.mode_combo.currentText() == "timestamp"
|
||||
|
||||
|
||||
def test_change_device_from_target_widget(curve_setting_fixture, qtbot):
|
||||
curve_setting, wf = curve_setting_fixture
|
||||
|
||||
wf.x_mode = "samx"
|
||||
|
||||
# Call refresh
|
||||
curve_setting.refresh()
|
||||
|
||||
assert curve_setting.mode_combo.currentText() == "device"
|
||||
assert curve_setting.device_x.isEnabled()
|
||||
assert curve_setting.device_x.text() == wf.x_axis_mode["name"]
|
||||
assert curve_setting.signal_x.text() == wf.x_axis_mode["entry"]
|
||||
|
||||
|
||||
##################################################
|
||||
# CurveTree
|
||||
##################################################
|
||||
|
Reference in New Issue
Block a user