Fix line length in test_gmcp.py
This commit is contained in:
parent
e247d70612
commit
6ed71873b5
1 changed files with 12 additions and 4 deletions
|
|
@ -430,10 +430,14 @@ async def test_char_status_sent_on_combat_end():
|
||||||
# Both players should have received Char.Status (after Char.Vitals)
|
# Both players should have received Char.Status (after Char.Vitals)
|
||||||
# Check that Char.Status was called at least once
|
# Check that Char.Status was called at least once
|
||||||
attacker_calls = [
|
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 = [
|
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"
|
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
|
# Check that Char.Status was sent
|
||||||
status_calls = [
|
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 len(status_calls) == 1
|
||||||
assert status_calls[0][0][1]["resting"] is True
|
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
|
# Check that Char.Status was sent
|
||||||
status_calls = [
|
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 len(status_calls) == 1
|
||||||
assert status_calls[0][0][1]["resting"] is False
|
assert status_calls[0][0][1]["resting"] is False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue