mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-05-05 14:24:21 +02:00
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>
This commit is contained in:
committed by
GitHub
parent
f299537fc3
commit
86181c8b37
@@ -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: (
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user