Feat/capability groups part2 (#1216)

* add groups to capabilities

* update to recent groups
This commit is contained in:
Henry Ruhs
2026-08-06 13:42:01 +02:00
committed by GitHub
parent 1fae1282d1
commit 3ef7736999
17 changed files with 179 additions and 86 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' ]
+6 -3
View File
@@ -22,7 +22,8 @@ def before_all() -> None:
nargs = '+'
)
],
scopes = [ 'api' ]
scopes = [ 'api' ],
groups = [ 'paths' ]
)
capability_store.register_capability_set(
[
@@ -30,7 +31,8 @@ def before_all() -> None:
'--target-path'
)
],
scopes = [ 'api' ]
scopes = [ 'api' ],
groups = [ 'paths' ]
)
capability_store.register_capability_set(
[
@@ -39,7 +41,8 @@ def before_all() -> None:
nargs = '+'
)
],
scopes = [ 'api' ]
scopes = [ 'api' ],
groups = [ 'paths' ]
)
state_manager.init_item('execution_providers', [ 'cpu' ])