mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-07 12:27:46 +00:00
#48 validate integer, number and boolean query parameters
This commit is contained in:
@@ -28,3 +28,8 @@ def test_validate_date():
|
||||
assert utils.validate_date('2015-07-31')
|
||||
assert not utils.validate_date('2015-07-31T19:51:00Z')
|
||||
assert utils.validate_date('9999-12-31')
|
||||
|
||||
|
||||
def test_boolean():
|
||||
assert utils.boolean('true')
|
||||
assert not utils.boolean('false')
|
||||
|
||||
Reference in New Issue
Block a user