Skip to content

Commit f4fb7b5

Browse files
author
Michael Aydinbas
committed
Fix CLI test runner for CI environment
CliRunner in non-TTY environments causes Rich to render ANSI codes character-by-character, breaking plain-text assertions like '--file' in result.output. Set NO_COLOR=1 and COLUMNS=200 to force plain-text output for reliable string matching in CI.
1 parent 7e345dd commit f4fb7b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

a4d-python/tests/test_cli/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from a4d.cli import app
99

10-
runner = CliRunner()
10+
runner = CliRunner(env={"NO_COLOR": "1", "COLUMNS": "200"})
1111

1212

1313
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)