Fix line length in test_gmcp.py

This commit is contained in:
Jared Miller 2026-02-11 23:00:42 -05:00
parent e247d70612
commit 6ed71873b5
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -430,10 +430,14 @@ async def test_char_status_sent_on_combat_end():
# Both players should have received Char.Status (after Char.Vitals)
# Check that Char.Status was called at least once
attacker_calls = [
call for call in mock_writer_1.send_gmcp.call_args_list if call[0][0] == "Char.Status"
call
for call in mock_writer_1.send_gmcp.call_args_list
if call[0][0] == "Char.Status"
]
defender_calls = [
call for call in mock_writer_2.send_gmcp.call_args_list if call[0][0] == "Char.Status"
call
for call in mock_writer_2.send_gmcp.call_args_list
if call[0][0] == "Char.Status"
]
assert len(attacker_calls) >= 1, "Attacker should receive Char.Status on combat end"
@ -459,7 +463,9 @@ async def test_char_status_sent_on_rest_start(player):
# Check that Char.Status was sent
status_calls = [
call for call in player.writer.send_gmcp.call_args_list if call[0][0] == "Char.Status"
call
for call in player.writer.send_gmcp.call_args_list
if call[0][0] == "Char.Status"
]
assert len(status_calls) == 1
assert status_calls[0][0][1]["resting"] is True
@ -477,7 +483,9 @@ async def test_char_status_sent_on_rest_complete(player):
# Check that Char.Status was sent
status_calls = [
call for call in player.writer.send_gmcp.call_args_list if call[0][0] == "Char.Status"
call
for call in player.writer.send_gmcp.call_args_list
if call[0][0] == "Char.Status"
]
assert len(status_calls) == 1
assert status_calls[0][0][1]["resting"] is False