test(narrative): fix dead-filter e2e test — need living actor in round 2

When Marcus (the only round-2 actor) was killed, generate_prose
short-circuited on empty actions without calling the LLM, so
mock_llm.call_args_list only had one entry. Added Elena as a
second round-2 actor to exercise the filter with a live participant.
This commit is contained in:
anadoris007 2026-04-22 14:55:28 +05:30
parent c223d77267
commit aabe9b42a2
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ def test_killed_character_filtered_from_next_round(tmp_path):
{"round": 1, "agent_id": 2, "agent_name": "Marcus", "action_type": "DISLIKE_POST",
"action_args": {}, "success": True, "timestamp": "t"},
{"event_type": "round_end", "round": 1, "timestamp": "t"},
# Round 2: Elena (alive) and Marcus (will be killed) both act — filter
# should keep Elena and drop Marcus
{"round": 2, "agent_id": 1, "agent_name": "Elena", "action_type": "QUOTE_POST",
"action_args": {}, "success": True, "timestamp": "t"},
{"round": 2, "agent_id": 2, "agent_name": "Marcus", "action_type": "REPOST",
"action_args": {}, "success": True, "timestamp": "t"},
{"event_type": "round_end", "round": 2, "timestamp": "t"},