mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-09 22:31:14 +00:00
test(builtin-skills): constrain runtime inventory
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
7d9ea67169
commit
bcef4fc5f0
1 changed files with 4 additions and 0 deletions
|
|
@ -33,6 +33,10 @@ for item in runtime_items:
|
|||
assert coordinate not in runtime_by_coordinate, coordinate
|
||||
runtime_by_coordinate[coordinate] = item
|
||||
|
||||
artifact_coordinates = {(item["slug"], item["version"]) for item in artifacts}
|
||||
legacy_coordinates = {("skillhub-hello", "1.0.0"), ("agentguard", "1.1")}
|
||||
assert set(runtime_by_coordinate) == artifact_coordinates | legacy_coordinates
|
||||
|
||||
for artifact in artifacts:
|
||||
coordinate = (artifact["slug"], artifact["version"])
|
||||
assert coordinate in runtime_by_coordinate, coordinate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue