Skip to content

Commit

Permalink
Merge pull request #801 from jmchilton/validator_repeat_test
Browse files Browse the repository at this point in the history
Add regression test for issue in #798.
  • Loading branch information
dannon committed Sep 25, 2015
2 parents 6d5ee0b + 5ff1025 commit bd3e86c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/api/test_tools.py
Expand Up @@ -237,6 +237,18 @@ def test_validation( self ):
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()
Expand Down
1 change: 1 addition & 0 deletions test/functional/tools/validation_repeat.xml
Expand Up @@ -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"/>
Expand Down

0 comments on commit bd3e86c

Please sign in to comment.