mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-05-30 01:48:42 +02:00
wip formatter
This commit is contained in:
@@ -51,21 +51,14 @@ def test_signal_combobox_init(device_signal_combobox):
|
||||
|
||||
def test_signal_combobox_autocomplete(qtbot, mocked_client):
|
||||
widget = create_widget(
|
||||
qtbot=qtbot,
|
||||
widget=SignalComboBox,
|
||||
client=mocked_client,
|
||||
autocomplete=True,
|
||||
qtbot=qtbot, widget=SignalComboBox, client=mocked_client, autocomplete=True
|
||||
)
|
||||
|
||||
widget.set_device("samx")
|
||||
|
||||
assert widget.autocomplete is True
|
||||
assert widget.completer() is not None
|
||||
assert widget.completer().model().stringList() == [
|
||||
"samx (readback)",
|
||||
"setpoint",
|
||||
"velocity",
|
||||
]
|
||||
assert widget.completer().model().stringList() == ["samx (readback)", "setpoint", "velocity"]
|
||||
assert widget.completer().model() != widget.model()
|
||||
|
||||
widget.autocomplete = False
|
||||
|
||||
Reference in New Issue
Block a user