Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/scriptform/commit/a9b7f811720a1b693cf0b5b45e718215cf95eddd?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
21 additions and
0 deletions
test/test.py
test/test_formdefinition_validate.json
@ -220,6 +220,13 @@ class FormDefinitionTest(unittest.TestCase):
self . assertNotIn ( ' val_checkbox ' , errors )
self . assertNotIn ( ' val_checkbox ' , errors )
self . assertEquals ( values [ ' val_checkbox ' ] , ' on ' )
self . assertEquals ( values [ ' val_checkbox ' ] , ' on ' )
def testValidateCheckboxDefaultOn ( self ) :
fd = self . fc . get_form_def ( ' test_val_checkbox_on ' )
form_values = { " val_checkbox_on " : ' off ' }
errors , values = fd . validate ( form_values )
self . assertNotIn ( ' val_checkbox_on ' , errors )
self . assertEquals ( values [ ' val_checkbox_on ' ] , ' off ' )
def testValidateCheckboxInvalid ( self ) :
def testValidateCheckboxInvalid ( self ) :
fd = self . fc . get_form_def ( ' test_val_checkbox ' )
fd = self . fc . get_form_def ( ' test_val_checkbox ' )
form_values = { " val_checkbox " : ' true ' }
form_values = { " val_checkbox " : ' true ' }
@ -98,6 +98,20 @@
}
}
]
]
} ,
} ,
{
"name" : "test_val_checkbox_on" ,
"title" : "test_val_checkbox_on" ,
"description" : "description" ,
"script" : "test.sh" ,
"fields" : [
{
"name" : "val_checkbox" ,
"title" : "field" ,
"type" : "checkbox" ,
"value" : true
}
]
} ,
{
{
"name" : "test_val_text" ,
"name" : "test_val_text" ,
"title" : "title" ,
"title" : "title" ,