mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
tests:options: add small test for pattern
This commit is contained in:
parent
3f320a2358
commit
719ffe387e
1 changed files with 2 additions and 0 deletions
|
@ -709,6 +709,8 @@ class TestText(BaseTest):
|
||||||
*unchanged("none", "_none", "False", "True", "0", "1", "-1", "1337", "13.37", "[]", ",", "['one']", "one,two", r"{}", "value", raw_option={"optional": True}),
|
*unchanged("none", "_none", "False", "True", "0", "1", "-1", "1337", "13.37", "[]", ",", "['one']", "one,two", r"{}", "value", raw_option={"optional": True}),
|
||||||
("value", "value"),
|
("value", "value"),
|
||||||
("value\n value", "value\n value"),
|
("value\n value", "value\n value"),
|
||||||
|
("value", FAIL, {"pattern": {"regexp": r'^[A-F]\d\d$', "error": "Provide a room like F12 : one uppercase and 2 numbers"}}),
|
||||||
|
("F12", "F12", {"pattern": {"regexp": r'^[A-F]\d\d$', "error": "Provide a room like F12 : one uppercase and 2 numbers"}}),
|
||||||
# test no strip
|
# test no strip
|
||||||
*xpass(scenarios=[
|
*xpass(scenarios=[
|
||||||
("value\n", "value"),
|
("value\n", "value"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue