mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Merge pull request #1746 from Salamandar/fix_tests_schema
schemas: fix tests.v1, args can be booleans too
This commit is contained in:
commit
b5ff2da9c8
2 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@
|
|||
"^[a-z][a-z0-9_]*$": {
|
||||
"anyOf": [
|
||||
{"type": "string"},
|
||||
{"type": "number"}
|
||||
{"type": "number"},
|
||||
{"type": "boolean"}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ def validate_schema() -> Generator[str, None, None]:
|
|||
|
||||
def check_app(app: str, infos: Dict[str, Any]) -> Generator[Tuple[str, bool], None, None]:
|
||||
if "state" not in infos:
|
||||
yield "state is missing"
|
||||
yield "state is missing", True
|
||||
return
|
||||
|
||||
if infos["state"] != "working":
|
||||
|
|
Loading…
Add table
Reference in a new issue