diff options
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_slackchannel.py | 35 | ||||
-rw-r--r-- | _pytest/test_slackdmchannel.py | 22 | ||||
-rw-r--r-- | _pytest/test_slackgroupchannel.py | 22 | ||||
-rw-r--r-- | _pytest/test_slackmpdmchannel.py | 22 | ||||
-rw-r--r-- | _pytest/test_slackrequest.py | 13 | ||||
-rw-r--r-- | _pytest/test_slackteam.py | 12 |
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 - |