feat(cli): render --transcript output as a table
This commit is contained in:
+7
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user