REUSE-WP-0014: T11 docs, roster stats, workplan finished
Link local-repo-roster in RegistryFederation; rollout milestone history; update IntentScopeGapAnalysis (60 hub members). Add stats --roster --federation-ready for workstation federation readiness.
This commit is contained in:
parent
993ffb42ea
commit
7c048a9f09
8 changed files with 253 additions and 40 deletions
|
|
@ -2,7 +2,12 @@ from __future__ import annotations
|
|||
|
||||
from pathlib import Path
|
||||
|
||||
from reuse_surface.stats import collect_stats, format_stats_markdown
|
||||
from reuse_surface.stats import (
|
||||
collect_roster_stats,
|
||||
collect_stats,
|
||||
format_roster_stats_markdown,
|
||||
format_stats_markdown,
|
||||
)
|
||||
|
||||
|
||||
def test_collect_stats_on_repo_root():
|
||||
|
|
@ -17,4 +22,15 @@ def test_format_stats_markdown_contains_count():
|
|||
root = Path(__file__).resolve().parent.parent
|
||||
text = format_stats_markdown(collect_stats(root))
|
||||
assert "Capabilities:" in text
|
||||
assert "20" in text
|
||||
assert "20" in text
|
||||
|
||||
|
||||
def test_collect_roster_stats_federation_ready():
|
||||
root = Path(__file__).resolve().parent.parent
|
||||
roster = root / "registry/federation/local-repo-roster.yaml"
|
||||
stats = collect_roster_stats(roster, federation_ready=True)
|
||||
assert stats["counts"]["total"] == 60
|
||||
assert stats["counts"]["established"] == 60
|
||||
assert "federation_readiness" in stats
|
||||
text = format_roster_stats_markdown(stats)
|
||||
assert "publish pass ratio" in text
|
||||
Loading…
Add table
Add a link
Reference in a new issue