feat(cli): render --transcript output as a table

This commit is contained in:
2026-09-11 13:02:31 +02:00
parent d6c8f88f77
commit 9c6f5e277e
4 changed files with 266 additions and 4 deletions
+7 -1
View File
@@ -80,8 +80,14 @@ def test_cli_transcript_prints_first_battle_log(capsys: pytest.CaptureFixture[st
out = capsys.readouterr().out
assert rc == 0
assert "Déroulé du premier combat" in out
# X6: the transcript is rendered as a table (header + separator); engine
# lines outside the "round N id: message" shape (initiative rolls) stay
# visible as raw fallback rows.
assert "Round" in out
assert "Combattant" in out
assert "Message" in out
assert "initiative:" in out
assert "round 1" in out
assert "goblin" in out
# The balance report must still be printed after the transcript.
assert "Rapport d'équilibrage" in out
assert out.index("Déroulé du premier combat") < out.index("Rapport d'équilibrage")