aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_processreply.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_processreply.py')
-rw-r--r--_pytest/test_processreply.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/_pytest/test_processreply.py b/_pytest/test_processreply.py
index 994b43f..34c2623 100644
--- a/_pytest/test_processreply.py
+++ b/_pytest/test_processreply.py
@@ -4,14 +4,16 @@ from wee_slack import SlackTS
def test_process_reply(realish_eventrouter, team, channel_general):
- message_ts = SlackTS('12341234.123456')
- message_text = 'reply test'
+ message_ts = SlackTS("12341234.123456")
+ message_text = "reply test"
channel_general.send_message(message_text)
- team.ws.add({'ok': True, 'reply_to': 1, '_team': team.team_hash, 'ts': str(message_ts)})
+ team.ws.add(
+ {"ok": True, "reply_to": 1, "_team": team.team_hash, "ts": str(message_ts)}
+ )
realish_eventrouter.receive_ws_callback(team.team_hash, None)
realish_eventrouter.handle_next()
assert message_ts in channel_general.messages
message_json = channel_general.messages[message_ts].message_json
- assert message_json['ts'] == message_ts
- assert message_json['text'] == message_text
+ assert message_json["ts"] == message_ts
+ assert message_json["text"] == message_text