@@ -57,7 +57,9 @@ def fake_send_message(*args, **kwargs):
57
57
58
58
async def test_send_response (default_channel , default_tracker ):
59
59
text_only_message = {"text" : "hey" }
60
- multiline_text_message = {"text" : "This message should come first: \n \n This is message two \n This as well\n \n " }
60
+ multiline_text_message = {
61
+ "text" : "This message should come first: \n \n This is message two \n This as well\n \n "
62
+ }
61
63
image_only_message = {"image" : "https://i.imgur.com/nGF1K8f.jpg" }
62
64
text_and_image_message = {
63
65
"text" : "look at this" ,
@@ -69,7 +71,9 @@ async def test_send_response(default_channel, default_tracker):
69
71
}
70
72
71
73
await default_channel .send_response (default_tracker .sender_id , text_only_message )
72
- await default_channel .send_response (default_tracker .sender_id , multiline_text_message )
74
+ await default_channel .send_response (
75
+ default_tracker .sender_id , multiline_text_message
76
+ )
73
77
await default_channel .send_response (default_tracker .sender_id , image_only_message )
74
78
await default_channel .send_response (
75
79
default_tracker .sender_id , text_and_image_message
@@ -83,8 +87,14 @@ async def test_send_response(default_channel, default_tracker):
83
87
assert collected [0 ] == {"recipient_id" : "my-sender" , "text" : "hey" }
84
88
85
89
# multiline text message, should split on '\n\n'
86
- assert collected [1 ] == {"recipient_id" : "my-sender" , "text" : "This message should come first: " }
87
- assert collected [2 ] == {"recipient_id" : "my-sender" , "text" : "This is message two \n This as well" }
90
+ assert collected [1 ] == {
91
+ "recipient_id" : "my-sender" ,
92
+ "text" : "This message should come first: " ,
93
+ }
94
+ assert collected [2 ] == {
95
+ "recipient_id" : "my-sender" ,
96
+ "text" : "This is message two \n This as well" ,
97
+ }
88
98
89
99
# image only message
90
100
assert collected [3 ] == {
0 commit comments