diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2021-03-20 13:41:02 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2021-03-20 13:42:40 +0100 |
commit | 373baece5094b5bedf10e08ea95d09be3619fd23 (patch) | |
tree | de7b6c84c3512c7a08aecf05c351936389bcdebf /_pytest/test_processreply.py | |
parent | bf9ef6f4bcd580a9b4ba858537d0a99cae7bb87e (diff) | |
download | wee-slack-373baece5094b5bedf10e08ea95d09be3619fd23.tar.gz |
Format all python files with black
Diffstat (limited to '_pytest/test_processreply.py')
-rw-r--r-- | _pytest/test_processreply.py | 12 |
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 |