aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_command_reply.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_command_reply.py')
-rw-r--r--_pytest/test_command_reply.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/_pytest/test_command_reply.py b/_pytest/test_command_reply.py
index a674d86..f78e0c7 100644
--- a/_pytest/test_command_reply.py
+++ b/_pytest/test_command_reply.py
@@ -4,13 +4,16 @@ import json
from wee_slack import SlackTS, command_reply
-parent_ts = SlackTS('1485975824.000004')
-child_ts = SlackTS('1485975835.000005')
+parent_ts = SlackTS("1485975824.000004")
+child_ts = SlackTS("1485975835.000005")
-def test_replying_to_child_should_use_parent_ts(realish_eventrouter, team, channel_general):
+
+def test_replying_to_child_should_use_parent_ts(
+ realish_eventrouter, team, channel_general
+):
datafiles = [
- '_pytest/data/websocket/1485975824.48-message.json',
- '_pytest/data/websocket/1485975836.23-message.json'
+ "_pytest/data/websocket/1485975824.48-message.json",
+ "_pytest/data/websocket/1485975836.23-message.json",
]
for datafile in datafiles:
data = json.loads(open(datafile).read())
@@ -19,7 +22,7 @@ def test_replying_to_child_should_use_parent_ts(realish_eventrouter, team, chann
realish_eventrouter.handle_next()
child_hash = channel_general.hashed_messages[child_ts]
- command_reply(None, channel_general.channel_buffer, '${} test'.format(child_hash))
+ command_reply(None, channel_general.channel_buffer, "${} test".format(child_hash))
sent = json.loads(team.ws.sentdata[0])
- assert sent['thread_ts'] == parent_ts
+ assert sent["thread_ts"] == parent_ts