generated from coulomb/repo-seed
Update gap report test for hub-core publish pass
Some checks failed
ci / validate-registry (push) Has been cancelled
Some checks failed
ci / validate-registry (push) Has been cancelled
Roster publish_fail count is now 12 after hub-core Gitea publish unblocked.
This commit is contained in:
@@ -97,15 +97,15 @@ def test_collect_gap_report_from_roster():
|
|||||||
roster = root / "registry/federation/local-repo-roster.yaml"
|
roster = root / "registry/federation/local-repo-roster.yaml"
|
||||||
report = collect_gap_report(roster)
|
report = collect_gap_report(roster)
|
||||||
assert report["summary"]["total"] == 60
|
assert report["summary"]["total"] == 60
|
||||||
assert len(report["publish_fail"]) == 13
|
assert len(report["publish_fail"]) == 12
|
||||||
assert report["empty_scaffold_count"] >= 40
|
assert report["empty_scaffold_count"] >= 40
|
||||||
|
|
||||||
|
|
||||||
def test_format_gap_markdown_lists_publish_fail():
|
def test_format_gap_markdown_lists_publish_fail():
|
||||||
report = {
|
report = {
|
||||||
"roster_path": "/tmp/roster.yaml",
|
"roster_path": "/tmp/roster.yaml",
|
||||||
"summary": {"total": 60, "established": 60, "publish_pass": 47},
|
"summary": {"total": 60, "established": 60, "publish_pass": 48},
|
||||||
"publish_fail": [{"slug": "hub-core", "publish_note": "missing repo"}],
|
"publish_fail": [{"slug": "inter-hub", "publish_note": "missing repo"}],
|
||||||
"empty_scaffold_count": 1,
|
"empty_scaffold_count": 1,
|
||||||
"empty_scaffolds": ["ops-bridge"],
|
"empty_scaffolds": ["ops-bridge"],
|
||||||
"seeded_repos": [],
|
"seeded_repos": [],
|
||||||
@@ -113,7 +113,7 @@ def test_format_gap_markdown_lists_publish_fail():
|
|||||||
"local_capability_count": 3,
|
"local_capability_count": 3,
|
||||||
}
|
}
|
||||||
text = format_gap_markdown(report)
|
text = format_gap_markdown(report)
|
||||||
assert "hub-core" in text
|
assert "inter-hub" in text
|
||||||
assert "ops-bridge" in text
|
assert "ops-bridge" in text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user