aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-03-28 14:12:09 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-08 15:11:57 +0200
commit4d674dad3f300dc1b5fd48e96d69c6d1a3234beb (patch)
tree72ff89359c4c9d1a870f21ae71efe3513f7e250e /_pytest
parent7d919f3897deb322f13428127b1ba91731917f4c (diff)
downloadwee-slack-4d674dad3f300dc1b5fd48e96d69c6d1a3234beb.tar.gz
Delete useless test
This test doesn't do any assertions, and is as far as I can see completely useless.
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/test_eventrouter.py54
1 files changed, 0 insertions, 54 deletions
diff --git a/_pytest/test_eventrouter.py b/_pytest/test_eventrouter.py
index 94301d8..85a456e 100644
--- a/_pytest/test_eventrouter.py
+++ b/_pytest/test_eventrouter.py
@@ -29,57 +29,3 @@ def test_EventRouter(mock_weechat):
# Create a function to test we are called
e.receive_json('{"type": "testfunc"}')
e.handle_next()
-
-def test_EventRouterReceivedata(mock_weechat):
-
- e = EventRouter()
- context = e.store_context(SlackRequest('xoxoxoxox', "rtm.startold", {"meh": "blah"}))
- print context
- e.receive_httprequest_callback(context, 1, -1, ' {"JSON": "MEH", ', 4)
- #print len(e.reply_buffer)
- context = e.store_context(SlackRequest('xoxoxoxox', "rtm.startold", {"meh": "blah"}))
- print context
- e.receive_httprequest_callback(context, 1, -1, ' "JSON2": "MEH", ', 4)
- #print len(e.reply_buffer)
- context = e.store_context(SlackRequest('xoxoxoxox', "rtm.startold", {"meh": "blah"}))
- print context
- e.receive_httprequest_callback(context, 1, 0, ' "JSON3": "MEH"}', 4)
- #print len(e.reply_buffer)
- try:
- e.handle_next()
- e.handle_next()
- e.handle_next()
- e.handle_next()
- except:
- pass
-
- print e.context
- #assert False
-
- context = e.store_context(SlackRequest('xoxoxoxox', "rtm.start", {"meh": "blah"}))
- rtmstartdata = open('_pytest/data/http/rtm.start.json', 'r').read()
- e.receive_httprequest_callback(context, 1, -1, rtmstartdata[:5000], 4)
- e.receive_httprequest_callback(context, 1, 0, rtmstartdata[5000:], 4)
- e.handle_next()
-
- #print len(e.reply_buffer)
-
- #print e.teams
-
- for t in e.teams:
- #print vars(e.teams[t])
- for c in e.teams[t].channels:
- pass
- #print c
- for u in e.teams[t].users:
- pass
- #print vars(u)
-
-
-# e = EventRouter()
-# # Create a function to test we are called
-# e.receive_json('{"type": "message"}')
-# e.handle_next()
-# assert False
-
- #assert False