This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mock.patch('random.choice') | |
def test_nick_replace(self, patched_choice): | |
mod = pyborg_irc2.ModIRC(pyborg.pyborg.pyborg, self.settings) | |
our_event = irc.client.Event(type=None, source=None, target="#botally") | |
mocked_channel = mock.Mock() | |
patched_choice.return_value = "jrabbit" | |
# mocked_channel.return_value.users = ['jrabbit'] | |
# mocked_channel.users.return_value = ["jrabbit"] | |
mod.channels = {"#botally": mocked_channel} | |
msg = "#nick is the best bot maker!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@a28533dfeea6:/var/lib/taskd# taskd add user Public deleteme | |
New user key: e00fe111-d4ea-415f-bd78-591f3f763065 | |
Created user 'deleteme' for organization 'Public' | |
root@a28533dfeea6:/var/lib/taskd# taskd remove user Public deleteme | |
ERROR: User 'deleteme' does not exists. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_version(): | |
"""this is actually complicated if we're in a container enviroment. | |
Maybe use taskc?!""" | |
x = check_output(["taskd", "-v"]) | |
l = x.strip().split("\n")[0] | |
# '\x1b[1mtaskd 1.2.0\x1b[0m e2d145b built for linux' | |
version = l.split()[1].split("\x1b")[0] | |
platform = l.split()[-1] | |
git_rev = l.split()[2] | |
return {"version": version, "platform": platform, "git_rev": git_rev} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_ERROR_NET_INADEQUATE_SECURITY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web_1 | 2016-06-20 21:57:31,640 ERROR Internal Server Error: / | |
web_1 | Traceback (most recent call last): | |
web_1 | File "/usr/local/lib/python2.7/site-packages/django/middleware/exception.py", line 35, in __call__ | |
web_1 | response = self.get_response(request) | |
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 277, in _legacy_get_response | |
web_1 | response = self._get_response(request) | |
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 224, in _get_response | |
web_1 | response = self.process_exception_by_middleware(e, request) | |
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 222, in _get_response | |
web_1 | response = response.render() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin | |
[X] 0001_initial | |
[X] 0002_logentry_remove_auto_add | |
annie | |
[X] 0001_initial | |
auth | |
[X] 0001_initial | |
[X] 0002_alter_permission_name_max_length | |
[X] 0003_alter_user_email_max_length | |
[X] 0004_alter_user_username_opts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line | |
utility.execute() | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv | |
super(Command, self).run_from_argv(argv) | |
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/jack/Projects/pyborg-1up/venv/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched | |
return func(*args, **keywargs) | |
File "test_irc2.py", line 11, in test_connect | |
mod.start() | |
File "/home/jack/Projects/pyborg-1up/venv/local/lib/python2.7/site-packages/irc/bot.py", line 327, in start | |
self._connect() | |
File "/home/jack/Projects/pyborg-1up/venv/local/lib/python2.7/site-packages/irc/bot.py", line 178, in _connect | |
**self.__connect_params) | |
File "/home/jack/Projects/pyborg-1up/venv/local/lib/python2.7/site-packages/irc/client.py", line 1219, in connect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mock | |
import unittest | |
import pyborg_irc2 | |
import pyborg | |
class TestConnect(unittest.TestCase): | |
@mock.patch('irc.connection.socket') | |
def test_connect(self, patched_socket): | |
mod = pyborg_irc2.ModIRC(pyborg.pyborg.pyborg()) | |
mod.start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enjoy | |
dick | |
false | |
can | |
doing | |
dude | |
am | |
bros | |
haskell |