1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-30 21:38:01 +02:00

fix: typos

This commit is contained in:
2026-03-22 19:05:45 +01:00
committed by Klaus Wakonig
parent e7ef8a3891
commit 3d29a67c0b
31 changed files with 50 additions and 50 deletions

View File

@@ -32,7 +32,7 @@ def test_dap_combobox_set_axis(dap_combobox):
container = []
def my_callback(msg: str):
"""Calback function to store the messages."""
"""Callback function to store the messages."""
container.append(msg)
dap_combobox.x_axis_updated.connect(my_callback)
@@ -51,7 +51,7 @@ def test_dap_combobox_select_fit(dap_combobox):
container = []
def my_callback(msg: str):
"""Calback function to store the messages."""
"""Callback function to store the messages."""
container.append(msg)
dap_combobox.fit_model_updated.connect(my_callback)
@@ -66,7 +66,7 @@ def test_dap_combobox_currentTextchanged(dap_combobox):
container = []
def my_callback(msg: str):
"""Calback function to store the messages."""
"""Callback function to store the messages."""
container.append(msg)
assert dap_combobox.fit_model_combobox.currentText() == "GaussianModel"

View File

@@ -1422,7 +1422,7 @@ class TestDeviceConfigTemplate:
qtbot.waitExposed(template)
yield template
def test_device_config_teamplate_default_init(
def test_device_config_template_default_init(
self, device_config_template: DeviceConfigTemplate, qtbot
):
"""Test DeviceConfigTemplate default initialization."""

View File

@@ -113,7 +113,7 @@ def test_client_generator_with_black_formatting():
class _WidgetsEnumType(str, enum.Enum):
"""Enum for the available widgets, to be generated programatically"""
"""Enum for the available widgets, to be generated programmatically"""
...

View File

@@ -113,7 +113,7 @@ def metadata_widget(empty_metadata_widget: ScanMetadata):
)
def fill_commponents(components: dict[str, DynamicFormItem]):
def fill_components(components: dict[str, DynamicFormItem]):
components["sample_name"].setValue("test name")
components["str_optional"].setValue(None)
components["str_required"].setValue("something")
@@ -147,7 +147,7 @@ def test_griditems_are_correct_class(
def test_grid_to_dict(metadata_widget: tuple[ScanMetadata, dict[str, DynamicFormItem]]):
widget, components = metadata_widget = metadata_widget
fill_commponents(components)
fill_components(components)
assert widget._dict_from_grid() == TEST_DICT
assert widget.get_form_data() == TEST_DICT | {"extra_field": "extra_data"}
@@ -159,7 +159,7 @@ def test_validation(metadata_widget: tuple[ScanMetadata, dict[str, DynamicFormIt
widget._validity.compact_status.default_led[:114]
)
fill_commponents(components)
fill_components(components)
widget.validate_form()
assert widget._validity_message.text() == "No errors!"
@@ -178,7 +178,7 @@ def test_numbers_clipped_to_limits(
metadata_widget: tuple[ScanMetadata, dict[str, DynamicFormItem]],
):
widget, components = metadata_widget = metadata_widget
fill_commponents(components)
fill_components(components)
components["decimal_dp_limits_nodefault"].setValue(-56)
assert components["decimal_dp_limits_nodefault"].getValue() == pytest.approx(1.01)

View File

@@ -637,7 +637,7 @@ def test_fetch_scan_data_and_access(qtbot, mocked_client, monkeypatch):
wf._fetch_scan_data_and_access()
hist_mock.assert_called_once_with(-1)
# Ckeck live mode
# Check live mode
dummy_scan = create_dummy_scan_item()
wf.scan_item = dummy_scan
data_dict, access_key = wf._fetch_scan_data_and_access()