Change table to box-style, supports unicode by default and ASCII as fallback mode

This commit is contained in:
mark 2026-07-22 12:48:16 -04:00
commit ef75e3e5f0
3 changed files with 103 additions and 8 deletions

View file

@ -85,3 +85,17 @@ def test_cli_ticker_truncation(tmp_path):
assert result.returncode == 0
assert "VERYLONGTICKERNAME-THAT-EXCEE..." in result.stdout
assert "VERYLONGTICKERNAME-THAT-EXCEEDS-THIRTY-CHARS" not in result.stdout
def test_cli_ascii_flag(sample_csv):
result = subprocess.run(
[sys.executable, "-m", "kalshi_csv.cli", sample_csv, "--no-color", "--ascii"],
capture_output=True,
text=True,
)
assert result.returncode == 0
assert "+" in result.stdout
assert "-" in result.stdout
assert "|" in result.stdout
assert "┌" not in result.stdout
assert "│" not in result.stdout