" in md
# Empty padding cells fill row to GRID_COLS width
- assert md.count("
| ") == 10
+ assert md.count("
| ") == 4
def test_render_wall_stats_with_repo_count():
@@ -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(14)}
+ contributors = {f"user{i}": {"avatar_url": f"https://x/{i}", "contributions": 1, "name": f"User {i}"} for i in range(8)}
md = render_wall(contributors, "2026-06-08")
assert md.count("
") == 2
- # 14 populated cells (links present) + 10 empty padding cells in the second row
- assert md.count("") == 10
+ # 8 populated cells (links present) + 4 empty padding cells in the second row
+ assert md.count("") == 4
def test_render_wall_truncates_long_names_with_ellipsis():
@@ -299,7 +299,7 @@ def test_render_wall_uses_colgroup_for_uniform_column_widths():
contributors = {"alice": {"avatar_url": "x", "contributions": 1, "name": "Alice"}}
md = render_wall(contributors, "2026-06-08")
assert "" in md
- assert md.count("") == 12 # one per GRID_COLS
+ assert md.count("") == 6 # one per GRID_COLS
def test_render_wall_sort_is_case_insensitive_and_unicode():