aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-04-02 10:03:32 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-08 15:11:57 +0200
commit82147d2d2a47927528e993816ee9393a4aa15b83 (patch)
tree421dd9f37c7fc1a2ff09abebcd9e4e20f1200d97
parentdbae7898342136c4cd937c93971070c91920fd22 (diff)
downloadwee-slack-82147d2d2a47927528e993816ee9393a4aa15b83.tar.gz
Delete tests
These tests don't do any assertions, so they are not very useful.
-rw-r--r--_pytest/test_slackchannel.py35
-rw-r--r--_pytest/test_slackdmchannel.py22
-rw-r--r--_pytest/test_slackgroupchannel.py22
-rw-r--r--_pytest/test_slackmpdmchannel.py22
-rw-r--r--_pytest/test_slackrequest.py13
-rw-r--r--_pytest/test_slackteam.py12
6 files changed, 0 insertions, 126 deletions
diff --git a/_pytest/test_slackchannel.py b/_pytest/test_slackchannel.py
deleted file mode 100644
index fee9238..0000000
--- a/_pytest/test_slackchannel.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from __future__ import print_function, unicode_literals
-
-from mock import Mock
-#from wee_slack import SlackChannel
-
-def test_SlackChannel(realish_eventrouter):
- e = realish_eventrouter
-
- print(e.sc["team"].channels)
- #c = SlackChannel(e, **json.loads(chan))
- c = e.sc["team"].channels['C3ZEQAYN7']
-
- print(c.formatted_name())
- c.is_someone_typing = Mock(return_value=True)
- c.channel_buffer = Mock(return_value=True)
- print(c.create_buffer())
- print(c.rename())
- print(c.current_short_name)
- print(c.formatted_name())
- print(c.rename())
- print(c.formatted_name())
-
- print("-------")
- print(c == "random")
- print("-------")
- print(c == "#random")
- print("-------")
- print(c == "weeslacktest.slack.com.#random")
- print("-------")
- print(c == "weeslacktest.slack.com.random")
- print("-------")
- print(c == "dandom")
-
- print(e.weechat_controller.buffers)
- #assert False
diff --git a/_pytest/test_slackdmchannel.py b/_pytest/test_slackdmchannel.py
deleted file mode 100644
index c6dc224..0000000
--- a/_pytest/test_slackdmchannel.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from __future__ import print_function, unicode_literals
-
-from mock import Mock
-#from wee_slack import SlackChannel
-
-def test_SlackDMChannel(realish_eventrouter):
- e = realish_eventrouter
-
- print(e.sc["team"].channels)
- #c = SlackChannel(e, **json.loads(chan))
- c = e.sc["team"].channels['D3ZEQULHZ']
-
- print(c.formatted_name())
- c.is_someone_typing = Mock(return_value=True)
- c.channel_buffer = Mock(return_value=True)
- print(c.create_buffer())
- print(c.rename())
- print(c.current_short_name)
- print(c.formatted_name())
- print(c.rename())
- print(c.formatted_name())
-# assert False
diff --git a/_pytest/test_slackgroupchannel.py b/_pytest/test_slackgroupchannel.py
deleted file mode 100644
index 8da15af..0000000
--- a/_pytest/test_slackgroupchannel.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from __future__ import print_function, unicode_literals
-
-from mock import Mock
-#from wee_slack import SlackChannel
-
-def test_SlackGroupChannel(realish_eventrouter):
- e = realish_eventrouter
-
- print(e.sc["team"].channels)
- #c = SlackChannel(e, **json.loads(chan))
- c = e.sc["team"].channels['G3ZJKP7GA']
-
- print(c.formatted_name())
- c.is_someone_typing = Mock(return_value=True)
- c.channel_buffer = Mock(return_value=True)
- print(c.create_buffer())
- print(c.rename())
- print(c.current_short_name)
- print(c.formatted_name())
- print(c.rename())
- print(c.formatted_name())
-# assert False
diff --git a/_pytest/test_slackmpdmchannel.py b/_pytest/test_slackmpdmchannel.py
deleted file mode 100644
index 4a9d8da..0000000
--- a/_pytest/test_slackmpdmchannel.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from __future__ import print_function, unicode_literals
-
-from mock import Mock
-#from wee_slack import SlackChannel
-
-def test_SlackMPDMChannel(realish_eventrouter):
- e = realish_eventrouter
-
- print(e.sc["team"].channels)
- #c = SlackChannel(e, **json.loads(chan))
- c = e.sc["team"].channels['G3ZGMF4RZ']
-
- print(c.formatted_name())
- c.is_someone_typing = Mock(return_value=True)
- c.channel_buffer = Mock(return_value=True)
- print(c.create_buffer())
- print(c.rename())
- print(c.current_short_name)
- print(c.formatted_name())
- print(c.rename())
- print(c.formatted_name())
-# assert False
diff --git a/_pytest/test_slackrequest.py b/_pytest/test_slackrequest.py
deleted file mode 100644
index 0163250..0000000
--- a/_pytest/test_slackrequest.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from __future__ import print_function, unicode_literals
-
-from wee_slack import SlackRequest, EventRouter
-
-def test_SlackRequest():
- s = SlackRequest('xoxoxoxox', "blah.get", {"meh": "blah"})
- print(s)
-
- e = EventRouter()
- e.receive(s)
- e.handle_next()
- #assert False
-
diff --git a/_pytest/test_slackteam.py b/_pytest/test_slackteam.py
deleted file mode 100644
index 82a112d..0000000
--- a/_pytest/test_slackteam.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from __future__ import print_function, unicode_literals
-
-from wee_slack import SlackTeam, EventRouter
-
-def test_SlackTeam():
- e = EventRouter()
- #s = SlackTeam('xoxo')
- #e.register_team(s)
- #print(e.queue)
- #print(e.handle_next())
- #assert False
-