From b5e92802bfb74292374574a20d3dde2756732ced Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 5 Dec 2014 21:16:03 -0500 Subject: [PATCH] ... and not all select params have static_options attribute. Bug fixes for bug fixes - why do I even try? --- lib/galaxy/tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/test.py b/lib/galaxy/tools/test.py index 333c90f3b9a..4f5b20c4cbd 100644 --- a/lib/galaxy/tools/test.py +++ b/lib/galaxy/tools/test.py @@ -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