From 86181c8b3753ef60a8a1f0fcf8cd4e2a986bb322 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 08:33:47 +0000 Subject: [PATCH] style: improve error message wording and test name clarity Agent-Logs-Url: https://github.com/bec-project/bec_widgets/sessions/872a29f8-acdf-42e5-94b9-bad871aef4a0 Co-authored-by: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> --- bec_widgets/widgets/containers/dock_area/dock_area.py | 4 +++- tests/unit_tests/test_dock_area.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bec_widgets/widgets/containers/dock_area/dock_area.py b/bec_widgets/widgets/containers/dock_area/dock_area.py index 1dba415a..afdcc12e 100644 --- a/bec_widgets/widgets/containers/dock_area/dock_area.py +++ b/bec_widgets/widgets/containers/dock_area/dock_area.py @@ -403,7 +403,9 @@ class BECDockArea(DockAreaWidget): try: plugin_widgets_dict = get_all_plugin_widgets().as_dict() except (ImportError, AttributeError, RuntimeError): - logger.warning("Failed to load plugin widgets for toolbar menu.", exc_info=True) + logger.warning( + "Failed to discover plugin widgets for toolbar menu.", exc_info=True + ) plugin_widgets_dict = {} plugin_actions: dict[str, tuple[str, str, str]] = { widget_name: ( diff --git a/tests/unit_tests/test_dock_area.py b/tests/unit_tests/test_dock_area.py index e8dc5fec..61c81032 100644 --- a/tests/unit_tests/test_dock_area.py +++ b/tests/unit_tests/test_dock_area.py @@ -1056,7 +1056,7 @@ class TestToolbarFunctionality: # Verify no "menu_plugins" bundle exists in the toolbar assert "menu_plugins" not in widget.toolbar.bundles - def test_plugin_menu_shown_when_plugins_available(self, qtbot, mocked_client, fake_plugin_widget_cls): + def test_plugin_menu_includes_available_plugins(self, qtbot, mocked_client, fake_plugin_widget_cls): """Test that the plugin menu is shown when plugin widgets are available.""" with patch( "bec_widgets.widgets.containers.dock_area.dock_area.get_all_plugin_widgets"