aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_processreply.py
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-05-10 15:50:16 -0500
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-08 15:11:57 +0200
commit60a842e141fd0710873f018e0908764f08132a77 (patch)
tree05457e7f7507e615bf6b50ff6c53894c3bc1b2d5 /_pytest/test_processreply.py
parent3639342e26f7e890ae600e74c7661ad84abb5700 (diff)
downloadwee-slack-60a842e141fd0710873f018e0908764f08132a77.tar.gz
Always use the print function from Python 3
Comments are updated as well as live code.
Diffstat (limited to '_pytest/test_processreply.py')
-rw-r--r--_pytest/test_processreply.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/_pytest/test_processreply.py b/_pytest/test_processreply.py
index 041a1db..b5ebb9e 100644
--- a/_pytest/test_processreply.py
+++ b/_pytest/test_processreply.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
#from wee_slack import process_reply
def test_process_reply(realish_eventrouter, mock_websocket):
@@ -8,7 +10,7 @@ def test_process_reply(realish_eventrouter, mock_websocket):
#u = e.teams[t].users.keys()[0]
#user = e.teams[t].users[u]
- #print user
+ #print(user)
socket = mock_websocket
e.teams[t].ws = socket
@@ -20,14 +22,14 @@ def test_process_reply(realish_eventrouter, mock_websocket):
socket = mock_websocket
socket.add({"reply_to": 1, "_team": t, "ts": "12341234.111"})
- print e.teams[t].ws_replies
+ print(e.teams[t].ws_replies)
e.receive_ws_callback(t)
e.handle_next()
#reply = {"reply_to": 1, "_team": t, "ts": "12341234.111"}
- #print reply
+ #print(reply)
#process_reply(reply, e)
- #print e.teams[t].ws_replies
+ #print(e.teams[t].ws_replies)
#assert False
pass