Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 1, 2024
1 parent f3f8928 commit cbab5ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/galaxy/tool_util/toolbox/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ def to_model(self) -> ToolPanelViewModel:
self._save_integrated_tool_panel()

def _default_panel_view(self, trans):
return self.app.config.config_value_for_host("default_panel_view", trans.host) or self.__default_panel_view
config = self.app.config
if hasattr(config, "config_value_for_host"):
config_value = config_value_for_host("default_panel_view", trans.host)
else:
config_value = getattr(config, "default_panel_view", None)
return config_value or self.__default_panel_view

def create_tool(self, config_file, tool_shed_repository=None, guid=None, **kwds):
raise NotImplementedError()
Expand Down

0 comments on commit cbab5ec

Please sign in to comment.