mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
add test with a float
This commit is contained in:
parent
a84439a0f3
commit
9bb94ebfdb
1 changed files with 4 additions and 0 deletions
|
@ -1114,6 +1114,10 @@ def test_parse_args_in_yunohost_format_number_bad_input():
|
|||
with pytest.raises(YunohostError):
|
||||
_parse_args_in_yunohost_format(answers, questions)
|
||||
|
||||
answers = {"some_number": 1.5}
|
||||
with pytest.raises(YunohostError):
|
||||
_parse_args_in_yunohost_format(answers, questions)
|
||||
|
||||
|
||||
def test_parse_args_in_yunohost_format_number_input():
|
||||
questions = [{"name": "some_number", "type": "number", "ask": "some question", }]
|
||||
|
|
Loading…
Add table
Reference in a new issue