Functional tool test fix.

No tests with a repeat and min=1 were ever going to past.
This commit is contained in:
John Chilton
2013-11-17 02:03:28 -06:00
parent 4cba87cc16
commit f05eacf362
+2 -1
View File
@@ -93,7 +93,8 @@ class ToolTestCase( TwillTestCase ):
repeat_name = None
for input_name, input_value in testdef.tool.inputs_by_page[0].items():
if isinstance( input_value, grouping.Repeat ) and all_inputs.get( input_name, 1 ) not in [ 0, "0" ]: # default behavior is to test 1 repeat, for backwards compatibility
repeat_name = input_name
if not input_value.min: # If input_value.min == 1, the element is already on the page don't add new element.
repeat_name = input_name
break
#check if we need to verify number of outputs created dynamically by tool