Skip to content

Commit 428a44e

Browse files
pdugan20claude
andcommitted
fix: resolve table title truncation in tests
Drop pad_edge=False default from table wrapper — it caused titles to truncate when table content was narrower than the title. Set explicit width on test console to avoid environment-dependent rendering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 52ef6f0 commit 428a44e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

clickwheel/output.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def table(*args, **kwargs) -> Table:
6161
kwargs["title_justify"] = "left"
6262
if "box" not in kwargs:
6363
kwargs["box"] = None
64-
if "pad_edge" not in kwargs:
65-
kwargs["pad_edge"] = False
6664
kwargs.setdefault("header_style", "bold")
6765
return Table(*args, **kwargs)
6866

tests/test_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def _capture(fn, msg: str) -> str:
1313
"""Capture output from an output helper by temporarily swapping the console."""
1414
buf = StringIO()
1515
original = output.console
16-
output.console = Console(file=buf, no_color=True)
16+
output.console = Console(file=buf, no_color=True, width=80)
1717
try:
1818
fn(msg)
1919
return buf.getvalue()
@@ -61,7 +61,7 @@ def test_confirm():
6161
def test_table_and_print():
6262
buf = StringIO()
6363
original = output.console
64-
output.console = Console(file=buf, no_color=True)
64+
output.console = Console(file=buf, no_color=True, width=80)
6565
try:
6666
t = output.table(title="Test")
6767
t.add_column("Col")

0 commit comments

Comments
 (0)