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"