From f05eacf362063cb04596e040aeafd46ce38d9fe5 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sun, 17 Nov 2013 02:03:28 -0600 Subject: [PATCH] Functional tool test fix. No tests with a repeat and min=1 were ever going to past. --- test/functional/test_toolbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/test_toolbox.py b/test/functional/test_toolbox.py index b3cd2d9d927..a2b81fb38ab 100644 --- a/test/functional/test_toolbox.py +++ b/test/functional/test_toolbox.py @@ -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