aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_command_reply.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2021-03-20 13:41:02 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2021-03-20 13:42:40 +0100
commit373baece5094b5bedf10e08ea95d09be3619fd23 (patch)
treede7b6c84c3512c7a08aecf05c351936389bcdebf /_pytest/test_command_reply.py
parentbf9ef6f4bcd580a9b4ba858537d0a99cae7bb87e (diff)
downloadwee-slack-373baece5094b5bedf10e08ea95d09be3619fd23.tar.gz
Format all python files with black
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