mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-09 22:31:14 +00:00
test(builtin-skills): derive collection size from catalog
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
d6345924d8
commit
7d9ea67169
2 changed files with 0 additions and 3 deletions
|
|
@ -33,7 +33,6 @@ for item in runtime_items:
|
|||
assert coordinate not in runtime_by_coordinate, coordinate
|
||||
runtime_by_coordinate[coordinate] = item
|
||||
|
||||
assert len(runtime_items) == 17, len(runtime_items)
|
||||
for artifact in artifacts:
|
||||
coordinate = (artifact["slug"], artifact["version"])
|
||||
assert coordinate in runtime_by_coordinate, coordinate
|
||||
|
|
@ -55,7 +54,6 @@ from pathlib import Path
|
|||
output = Path(sys.argv[1])
|
||||
manifest = json.loads((output / "artifacts.json").read_text(encoding="utf-8"))
|
||||
artifacts = manifest["artifacts"]
|
||||
assert len(artifacts) == 15, len(artifacts)
|
||||
assert [item["slug"] for item in artifacts] == sorted(item["slug"] for item in artifacts)
|
||||
|
||||
for item in artifacts:
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ class BuiltinSkillSourcePackageTest {
|
|||
JsonNode skills = catalog.path("skills");
|
||||
|
||||
assertThat(skills.isArray()).isTrue();
|
||||
assertThat(skills).hasSize(15);
|
||||
|
||||
Set<String> catalogSlugs = new HashSet<>();
|
||||
for (JsonNode item : skills) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue