1
0
Fork 0
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:
Alexandre Aubin 2023-09-24 22:15:09 +02:00 committed by GitHub
commit b5ff2da9c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,8 @@
"^[a-z][a-z0-9_]*$": {
"anyOf": [
{"type": "string"},
{"type": "number"}
{"type": "number"},
{"type": "boolean"}
]
}
}

View file

@ -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":