add groups to capabilities

This commit is contained in:
henryruhs
2026-07-02 20:39:09 +02:00
parent 4895615334
commit b6a1adb7a5
17 changed files with 175 additions and 84 deletions
+6 -4
View File
@@ -18,7 +18,8 @@ def before_all() -> None:
nargs = '+'
)
],
scopes = [ 'api' ]
scopes = [ 'api' ],
groups = [ 'paths' ]
)
capability_store.register_capability_set(
[
@@ -28,7 +29,8 @@ def before_all() -> None:
choices = [ 'mp4', 'mkv', 'webm' ]
)
],
scopes = [ 'api' ]
scopes = [ 'api' ],
groups = [ 'paths' ]
)
@@ -55,5 +57,5 @@ def test_get_capabilities(test_client : TestClient) -> None:
assert 'mp4' in capabilities_body.get('formats').get('video')
assert capabilities_body.get('arguments').get('source_paths').get('default') is None
assert capabilities_body.get('arguments').get('output_format').get('choices') == [ 'mp4', 'mkv', 'webm' ]
assert capabilities_body.get('arguments').get('paths').get('source_paths').get('default') is None
assert capabilities_body.get('arguments').get('paths').get('output_format').get('choices') == [ 'mp4', 'mkv', 'webm' ]