Merge pull request #801 from jmchilton/validator_repeat_test

Add regression test for issue in #798.
This commit is contained in:
Dannon Baker
2015-09-25 15:47:29 -04:00
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -237,6 +237,18 @@ class ToolsTestCase( api.ApiTestCase ):
response = self._run( "validation_default", history_id, inputs )
self._assert_status_code_is( response, 400 )
@skip_without_tool( "validation_repeat" )
def test_validation_in_repeat( self ):
history_id = self.dataset_populator.new_history()
inputs = {
'r1_0|text': "123",
'r2_0|text': "",
}
response = self._run( "validation_repeat", history_id, inputs )
import time
time.sleep(10)
self._assert_status_code_is( response, 400 )
@skip_without_tool( "multi_select" )
def test_select_legal_values( self ):
history_id = self.dataset_populator.new_history()
@@ -13,6 +13,7 @@
</repeat>
<repeat name="r2" label="Repeat 2">
<param name="text" type="text" label="text input">
<validator type="empty_field" />
<sanitizer>
<valid initial="none">
<add value="a"/>