Skip to content

Commit

Permalink
Merge pull request #908 from carlfeberhard/fix.vis-config-tests
Browse files Browse the repository at this point in the history
Visualizations registry: always set 'tests' for a plugin, defaulting …
  • Loading branch information
afgane committed Oct 13, 2015
2 parents a29d058 + 6182e0d commit 9808acf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/galaxy/visualization/plugins/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,8 @@ def parse( self, xml_tree ):
returned[ 'model_class' ] = model_class

# tests (optional, 0 or more) - data for boolean test: 'is the visualization usable by this object?'
tests = self.parse_tests( xml_tree.findall( 'test' ) )
# when no tests are given, default to isinstance( object, model_class )
if tests:
returned[ 'tests' ] = tests
returned[ 'tests' ] = self.parse_tests( xml_tree.findall( 'test' ) )

# to_params (optional, 0 or more) - tells the registry to set certain params based on the model_clas, tests
returned[ 'to_params' ] = {}
Expand Down

0 comments on commit 9808acf

Please sign in to comment.