Skip to content

Commit

Permalink
More specific import
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Aug 9, 2023
1 parent 1168d30 commit 0d0d530
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from galaxy import util
from galaxy.files import ProvidesUserFileSourcesUserContext
from galaxy.managers import dbkeys
from galaxy.managers.dbkeys import read_dbnames
from galaxy.model import (
cached_id,
Dataset,
Expand Down Expand Up @@ -1164,7 +1164,7 @@ class GenomeBuildParameter(SelectToolParameter):
>>> # Create a mock transaction with 'hg17' as the current build
>>> from galaxy.util.bunch import Bunch
>>> trans = Bunch(app=None, history=Bunch(genome_build='hg17'), db_builds=dbkeys.read_dbnames(None))
>>> trans = Bunch(app=None, history=Bunch(genome_build='hg17'), db_builds=read_dbnames(None))
>>> p = GenomeBuildParameter(None, XML('<param name="_name" type="genomebuild" value="hg17" />'))
>>> print(p.name)
_name
Expand Down Expand Up @@ -1220,7 +1220,7 @@ def to_dict(self, trans, other_values=None):
def _get_dbkey_names(self, trans=None):
if not self.tool:
# Hack for unit tests, since we have no tool
return dbkeys.read_dbnames(None)
return read_dbnames(None)
return self.tool.app.genome_builds.get_genome_build_names(trans=trans)


Expand Down Expand Up @@ -1546,7 +1546,7 @@ class DrillDownSelectToolParameter(SelectToolParameter):
Creating a hierarchical select menu, which allows users to 'drill down' a tree-like set of options.
>>> from galaxy.util.bunch import Bunch
>>> trans = Bunch(app=None, history=Bunch(genome_build='hg17'), db_builds=dbkeys.read_dbnames(None))
>>> trans = Bunch(app=None, history=Bunch(genome_build='hg17'), db_builds=read_dbnames(None))
>>> p = DrillDownSelectToolParameter(None, XML(
... '''
... <param name="_name" type="drill_down" display="checkbox" hierarchy="recurse" multiple="true">
Expand Down

0 comments on commit 0d0d530

Please sign in to comment.