Update gap report test for hub-core publish pass
Roster publish_fail count is now 12 after hub-core Gitea publish unblocked.
This commit is contained in:
parent
5b2789b813
commit
d71f394911
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue