" in md
# Empty padding cells fill row to GRID_COLS width
- assert md.count("
| ") == 8
+ assert md.count("
| ") == 10
def test_render_wall_stats_with_repo_count():
contributors = {
- "alice": {"avatar_url": "https://x/a", "contributions": 10, "name": "Alice Example"},
- "bob": {"avatar_url": "https://x/b", "contributions": 5, "name": "Bob Sample"},
+ "alice": {"avatar_url": "https://x/a", "contributions": 10, "name": "Alice"},
+ "bob": {"avatar_url": "https://x/b", "contributions": 5, "name": "Bob"},
}
md = render_wall(contributors, "2026-06-08", repo_count=42)
assert "2 contributors across 42 repositories" in md
@@ -256,12 +256,12 @@ def test_render_wall_pluralization_singular():
def test_render_wall_two_rows_with_remainder():
- contributors = {f"user{i}": {"avatar_url": f"https://x/{i}", "contributions": 1, "name": f"User {i}"} for i in range(11)}
+ contributors = {f"user{i}": {"avatar_url": f"https://x/{i}", "contributions": 1, "name": f"User {i}"} for i in range(14)}
md = render_wall(contributors, "2026-06-08")
assert md.count("
") == 2
- # 11 populated cells (links present) + 9 empty padding cells in the second row
- assert md.count("") == 9
+ # 14 populated cells (links present) + 10 empty padding cells in the second row
+ assert md.count("") == 10
def test_render_wall_truncates_long_names_with_ellipsis():
@@ -386,7 +386,7 @@ def test_main_end_to_end(monkeypatch, tmp_path):
responses.add(
responses.GET,
"https://api.github.com/users/alice",
- json={"login": "alice", "name": "Alice Example"},
+ json={"login": "alice", "name": "Alice"},
status=200,
)
@@ -399,6 +399,6 @@ def test_main_end_to_end(monkeypatch, tmp_path):
assert exit_code == 0
assert readme.exists()
content = readme.read_text(encoding="utf-8")
- assert "Alice Example" in content
+ assert "Alice" in content
assert "1 contributor across 1 repository" in content # Only alice; bot filtered
assert "dependabot" not in content