... and not all select params have static_options attribute.

Bug fixes for bug fixes - why do I even try?
This commit is contained in:
John Chilton
2014-12-05 21:16:03 -05:00
parent 5b6c092aa0
commit b5e92802bf
+1 -1
View File
@@ -202,7 +202,7 @@ class ToolTestBuilder( object ):
for ( name, value, extra ) in collection_def.collect_inputs():
require_file( name, value, extra, self.required_files )
processed_value = collection_def
elif isinstance( value, basic.SelectToolParameter ):
elif isinstance( value, basic.SelectToolParameter ) and hasattr( value, 'static_options' ):
# Tests may specify values as either raw value or the value
# as they appear in the list - the API doesn't and shouldn't
# accept the text value - so we need to convert the text