Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirements.txt: Update Errbot #572

Merged
merged 2 commits into from
Jul 30, 2018
Merged

Conversation

nvzard
Copy link
Member

@nvzard nvzard commented Jun 22, 2018

Closes #571
Closes #584

@TravisBuddy
Copy link

Travis tests have failed

Hey @nvzard,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

python -m pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.6.2, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.0, xdist-1.22.2, timeout-1.3.0, reqs-0.0.7, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1
collected 38 items                                                             

tests/answer_test.py .                                                   [  2%]
tests/ban_test.py FF                                                     [  7%]
tests/coala_lowercase_c_test.py ..                                       [ 13%]
tests/coatils_test.py ...........                                        [ 42%]
tests/deprecate_bot_prefixes_test.py .                                   [ 44%]
tests/explain_test.py .                                                  [ 47%]
tests/ghetto_test.py .                                                   [ 50%]
tests/git_stats_test.py F                                                [ 52%]
tests/labhub_test.py FFF.F..FF                                           [ 76%]
tests/lmgtfy_test.py .                                                   [ 78%]
tests/nevermind_test.py .                                                [ 81%]
tests/pitchfork_test.py .                                                [ 84%]
tests/searchdocs_test.py .                                               [ 86%]
tests/ship_it_test.py .                                                  [ 89%]
tests/spam_test.py ..                                                    [ 94%]
tests/the_rules_test.py .                                                [ 97%]
tests/wolfram_alpha_test.py .                                            [100%]

=================================== FAILURES ===================================
_____________________________ TestBan.test_ban_cmd _____________________________

self = <tests.ban_test.TestBan testMethod=test_ban_cmd>
mockjson = <MagicMock name='json' id='139876283751728'>
mockreq = <MagicMock name='requests' id='139876283750104'>

    @patch('plugins.ban.requests')
    @patch('plugins.ban.json')
    def test_ban_cmd(self, mockjson, mockreq):
>       ban, testbot = plugin_testbot(plugins.ban.Ban, logging.ERROR)

tests/ban_test.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.ban.Ban'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
____________________________ TestBan.test_unban_cmd ____________________________

self = <tests.ban_test.TestBan testMethod=test_unban_cmd>
mockjson = <MagicMock name='json' id='139876013669064'>
mockreq = <MagicMock name='requests' id='139876013669680'>

    @patch('plugins.ban.requests')
    @patch('plugins.ban.json')
    def test_unban_cmd(self, mockjson, mockreq):
>       ban, testbot = plugin_testbot(plugins.ban.Ban, logging.ERROR)

tests/ban_test.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.ban.Ban'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
__________________________ TestGitStats.test_pr_list ___________________________

self = <tests.git_stats_test.TestGitStats testMethod=test_pr_list>

    def test_pr_list(self):
>       git_stats, testbot = plugin_testbot(self.plugin, logging.ERROR)

tests/git_stats_test.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.git_stats.GitStats'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
DEBUG    errbot.backends.test      Merging {} to the bot config.
waiting on queue
message received
waiting on queue
----------------------------- Captured stderr call -----------------------------
2018-06-22 06:45:40,271 DEBUG    errbot.backends.test      Merging {} to the bot config.
------------------------------ Captured log call -------------------------------
test.py                    371 DEBUG    Merging {} to the bot config.
____________________________ TestLabHub.test_alive _____________________________

self = <tests.labhub_test.TestLabHub testMethod=test_alive>

    def test_alive(self):
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:377: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
__________________________ TestLabHub.test_assign_cmd __________________________

self = <tests.labhub_test.TestLabHub testMethod=test_assign_cmd>

    def test_assign_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:212: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
_______________________ TestLabHub.test_create_issue_cmd _______________________

self = <tests.labhub_test.TestLabHub testMethod=test_create_issue_cmd>

    def test_create_issue_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
        plugins.labhub.GitHubToken = create_autospec(IGitt.GitHub.GitHubToken)
        plugins.labhub.GitLabPrivateToken = create_autospec(IGitt.GitLab.GitLabPrivateToken)
    
        labhub, testbot_private = plugin_testbot(
            plugins.labhub.LabHub, logging.ERROR,
>           {'BACKEND': 'text', 'ACCESS_CONTROLS':{'create_issue_cmd' : {'allowprivate':False}}}
        )

tests/labhub_test.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40
config = {'ACCESS_CONTROLS': {'create_issue_cmd': {'allowprivate': False}}, 'BACKEND': 'text'}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
__________________________ TestLabHub.test_invite_cmd __________________________

self = <tests.labhub_test.TestLabHub testMethod=test_invite_cmd>

    def test_invite_cmd(self):
        mock_team_newcomers = create_autospec(github3.orgs.Team)
        mock_team_developers = create_autospec(github3.orgs.Team)
        mock_team_maintainers = create_autospec(github3.orgs.Team)
    
        teams = {
            'coala maintainers': mock_team_maintainers,
            'coala newcomers': mock_team_newcomers,
            'coala developers': mock_team_developers
        }
    
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
___________________________ TestLabHub.test_mark_cmd ___________________________

self = <tests.labhub_test.TestLabHub testMethod=test_mark_cmd>

    def test_mark_cmd(self):
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:323: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
_________________________ TestLabHub.test_unassign_cmd _________________________

self = <tests.labhub_test.TestLabHub testMethod=test_unassign_cmd>

    def test_unassign_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue

----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
plugins/__init__.py                     0      0   100%
plugins/answer.py                      25      0   100%
plugins/ban.py                         37     31    16%   19-45, 54-79
plugins/coala_lowercase_c.py           12      0   100%
plugins/coatils.py                    120      0   100%
plugins/constants.py                    7      0   100%
plugins/deprecate_bot_prefixes.py       6      0   100%
plugins/explain.py                     21      0   100%
plugins/ghetto.py                      10      0   100%
plugins/git_stats.py                   51     41    20%   26-78
plugins/labhub.py                     211    146    31%   86-140, 167-182, 201-221, 228-270, 283-386, 394-402, 407-438
plugins/lmgtfy.py                       4      0   100%
plugins/nevermind.py                    5      0   100%
plugins/pitchfork.py                   12      0   100%
plugins/searchdocs.py                  16      0   100%
plugins/ship_it.py                      7      0   100%
plugins/spam.py                        20      0   100%
plugins/the_rules.py                    5      0   100%
plugins/wolfram_alpha.py               18      0   100%
-----------------------------------------------------------------
TOTAL                                 587    218    63%

FAIL Required test coverage of 100% not reached. Total coverage: 62.86%
=============================== warnings summary ===============================
<undetermined location>
  Module already imported so cannot be rewritten: errbot.backends.test

tests/labhub_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

tests/spam_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============== 9 failed, 29 passed, 3 warnings in 36.49 seconds ===============

@nvzard
Copy link
Member Author

nvzard commented Jun 22, 2018

errbotio/errbot@9a03b72#diff-86fb3ee3298c4b1416b1da174131201c
This removed the instanciateElement method from the plugin manager.

@TravisBuddy
Copy link

Travis tests have failed

Hey @nvzard,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

python -m pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.6.2, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.0, xdist-1.22.2, timeout-1.3.0, reqs-0.0.7, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1
collected 38 items                                                             

tests/answer_test.py .                                                   [  2%]
tests/ban_test.py FF                                                     [  7%]
tests/coala_lowercase_c_test.py ..                                       [ 13%]
tests/coatils_test.py ...........                                        [ 42%]
tests/deprecate_bot_prefixes_test.py .                                   [ 44%]
tests/explain_test.py .                                                  [ 47%]
tests/ghetto_test.py .                                                   [ 50%]
tests/git_stats_test.py F                                                [ 52%]
tests/labhub_test.py FFF.F..FF                                           [ 76%]
tests/lmgtfy_test.py .                                                   [ 78%]
tests/nevermind_test.py .                                                [ 81%]
tests/pitchfork_test.py .                                                [ 84%]
tests/searchdocs_test.py .                                               [ 86%]
tests/ship_it_test.py .                                                  [ 89%]
tests/spam_test.py ..                                                    [ 94%]
tests/the_rules_test.py .                                                [ 97%]
tests/wolfram_alpha_test.py .                                            [100%]

=================================== FAILURES ===================================
_____________________________ TestBan.test_ban_cmd _____________________________

self = <tests.ban_test.TestBan testMethod=test_ban_cmd>
mockjson = <MagicMock name='json' id='140309709323344'>
mockreq = <MagicMock name='requests' id='140309671402296'>

    @patch('plugins.ban.requests')
    @patch('plugins.ban.json')
    def test_ban_cmd(self, mockjson, mockreq):
>       ban, testbot = plugin_testbot(plugins.ban.Ban, logging.ERROR)

tests/ban_test.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.ban.Ban'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
____________________________ TestBan.test_unban_cmd ____________________________

self = <tests.ban_test.TestBan testMethod=test_unban_cmd>
mockjson = <MagicMock name='json' id='140309670201664'>
mockreq = <MagicMock name='requests' id='140309670202280'>

    @patch('plugins.ban.requests')
    @patch('plugins.ban.json')
    def test_unban_cmd(self, mockjson, mockreq):
>       ban, testbot = plugin_testbot(plugins.ban.Ban, logging.ERROR)

tests/ban_test.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.ban.Ban'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
__________________________ TestGitStats.test_pr_list ___________________________

self = <tests.git_stats_test.TestGitStats testMethod=test_pr_list>

    def test_pr_list(self):
>       git_stats, testbot = plugin_testbot(self.plugin, logging.ERROR)

tests/git_stats_test.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.git_stats.GitStats'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
DEBUG    errbot.backends.test      Merging {} to the bot config.
waiting on queue
message received
waiting on queue
----------------------------- Captured stderr call -----------------------------
2018-06-23 09:44:02,057 DEBUG    errbot.backends.test      Merging {} to the bot config.
------------------------------ Captured log call -------------------------------
test.py                    371 DEBUG    Merging {} to the bot config.
____________________________ TestLabHub.test_alive _____________________________

self = <tests.labhub_test.TestLabHub testMethod=test_alive>

    def test_alive(self):
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:377: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
__________________________ TestLabHub.test_assign_cmd __________________________

self = <tests.labhub_test.TestLabHub testMethod=test_assign_cmd>

    def test_assign_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:212: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
_______________________ TestLabHub.test_create_issue_cmd _______________________

self = <tests.labhub_test.TestLabHub testMethod=test_create_issue_cmd>

    def test_create_issue_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
        plugins.labhub.GitHubToken = create_autospec(IGitt.GitHub.GitHubToken)
        plugins.labhub.GitLabPrivateToken = create_autospec(IGitt.GitLab.GitLabPrivateToken)
    
        labhub, testbot_private = plugin_testbot(
            plugins.labhub.LabHub, logging.ERROR,
>           {'BACKEND': 'text', 'ACCESS_CONTROLS':{'create_issue_cmd' : {'allowprivate':False}}}
        )

tests/labhub_test.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40
config = {'ACCESS_CONTROLS': {'create_issue_cmd': {'allowprivate': False}}, 'BACKEND': 'text'}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
__________________________ TestLabHub.test_invite_cmd __________________________

self = <tests.labhub_test.TestLabHub testMethod=test_invite_cmd>

    def test_invite_cmd(self):
        mock_team_newcomers = create_autospec(github3.orgs.Team)
        mock_team_developers = create_autospec(github3.orgs.Team)
        mock_team_maintainers = create_autospec(github3.orgs.Team)
    
        teams = {
            'coala maintainers': mock_team_maintainers,
            'coala newcomers': mock_team_newcomers,
            'coala developers': mock_team_developers
        }
    
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
___________________________ TestLabHub.test_mark_cmd ___________________________

self = <tests.labhub_test.TestLabHub testMethod=test_mark_cmd>

    def test_mark_cmd(self):
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:323: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
_________________________ TestLabHub.test_unassign_cmd _________________________

self = <tests.labhub_test.TestLabHub testMethod=test_unassign_cmd>

    def test_unassign_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
>       labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)

tests/labhub_test.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

klass = <class 'plugins.labhub.LabHub'>, loglevel = 40, config = {}

    def plugin_testbot(klass, loglevel, config=None):
        config = config if config else dict()
        testbot = TestBot(loglevel=loglevel, extra_config=config)
        testbot.start()
>       plug = testbot.bot.plugin_manager.instanciateElement(klass)
E       AttributeError: 'BotPluginManager' object has no attribute 'instanciateElement'

tests/helper.py:7: AttributeError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue

----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
plugins/__init__.py                     0      0   100%
plugins/answer.py                      25      0   100%
plugins/ban.py                         37     31    16%   19-45, 54-79
plugins/coala_lowercase_c.py           12      0   100%
plugins/coatils.py                    120      0   100%
plugins/constants.py                    7      0   100%
plugins/deprecate_bot_prefixes.py       6      0   100%
plugins/explain.py                     21      0   100%
plugins/ghetto.py                      10      0   100%
plugins/git_stats.py                   51     41    20%   26-78
plugins/labhub.py                     211    146    31%   86-140, 167-182, 201-221, 228-270, 283-386, 394-402, 407-438
plugins/lmgtfy.py                       4      0   100%
plugins/nevermind.py                    5      0   100%
plugins/pitchfork.py                   12      0   100%
plugins/searchdocs.py                  16      0   100%
plugins/ship_it.py                      7      0   100%
plugins/spam.py                        20      0   100%
plugins/the_rules.py                    5      0   100%
plugins/wolfram_alpha.py               18      0   100%
-----------------------------------------------------------------
TOTAL                                 587    218    63%

FAIL Required test coverage of 100% not reached. Total coverage: 62.86%
=============================== warnings summary ===============================
<undetermined location>
  Module already imported so cannot be rewritten: errbot.backends.test

tests/labhub_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

tests/spam_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============== 9 failed, 29 passed, 3 warnings in 37.49 seconds ===============

@nvzard nvzard force-pushed the nvzard/571 branch 3 times, most recently from af0fa0b to 04e6197 Compare June 24, 2018 20:31
@nvzard nvzard changed the title requirements.txt: Update Errbot [WIP] requirements.txt: Update Errbot Jul 6, 2018
@nvzard nvzard force-pushed the nvzard/571 branch 3 times, most recently from 177eb1b to 1bfc960 Compare July 9, 2018 21:20
@TravisBuddy
Copy link

Travis tests have failed

Hey @nvzard,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

python -m pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.6.3, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.0, xdist-1.22.2, timeout-1.3.0, reqs-0.0.7, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1
collected 38 items                                                             

tests/answer_test.py .                                                   [  2%]
tests/ban_test.py ..                                                     [  7%]
tests/coala_lowercase_c_test.py ..                                       [ 13%]
tests/coatils_test.py ...........                                        [ 42%]
tests/deprecate_bot_prefixes_test.py .                                   [ 44%]
tests/explain_test.py .                                                  [ 47%]
tests/ghetto_test.py .                                                   [ 50%]
tests/git_stats_test.py .                                                [ 52%]
tests/labhub_test.py .FF......                                           [ 76%]
tests/lmgtfy_test.py .                                                   [ 78%]
tests/nevermind_test.py .                                                [ 81%]
tests/pitchfork_test.py .                                                [ 84%]
tests/searchdocs_test.py .                                               [ 86%]
tests/ship_it_test.py .                                                  [ 89%]
tests/spam_test.py ..                                                    [ 94%]
tests/the_rules_test.py .                                                [ 97%]
tests/wolfram_alpha_test.py .                                            [100%]

=================================== FAILURES ===================================
__________________________ TestLabHub.test_assign_cmd __________________________

self = <tests.labhub_test.TestLabHub testMethod=test_assign_cmd>

    def test_assign_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
        labhub, testbot = plugin_testbot(plugins.labhub.LabHub, 'LabHub', logging.ERROR)
        labhub.activate()
    
        mock_issue = create_autospec(GitHubIssue)
        self.mock_repo.get_issue.return_value = mock_issue
    
        labhub.REPOS = {'a': self.mock_repo}
    
        mock_dev_team = create_autospec(github3.orgs.Team)
        mock_maint_team = create_autospec(github3.orgs.Team)
        mock_dev_team.is_member.return_value = False
        mock_maint_team.is_member.return_value = False
    
        labhub.TEAMS = {'coala newcomers': self.mock_team,
                        'coala developers': mock_dev_team,
                        'coala maintainers': mock_maint_team}
    
        cmd = '!assign https://github.com/{}/{}/issues/{}'
        # no assignee, not newcomer
        mock_issue.assignees = tuple()
        self.mock_team.is_member.return_value = False
    
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You\'ve been assigned to the issue')
    
        # no assignee, newcomer, initiatives/gci
        mock_maint_team.is_member.return_value = False
        mock_dev_team.is_member.return_value = False
        mock_issue.labels = 'initiatives/gci',
        mock_issue.assignees = tuple()
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You are not eligible to be assigned'
                              ' to this issue')
        testbot.pop_message()
    
        # no assignee, developer, initiatives/gci
        mock_maint_team.is_member.return_value = False
        mock_dev_team.is_member.return_value = True
        mock_issue.labels = 'initiatives/gci',
        mock_issue.assignees = tuple()
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You are not eligible to be assigned'
                              ' to this issue')
        testbot.pop_message()
        mock_dev_team.is_member.return_value = False
    
        # no assignee, newcomer, difficulty/low
        mock_issue.labels = PropertyMock()
        mock_issue.labels = ('difficulty/low', )
        mock_issue.assignees = tuple()
        self.mock_team.is_member.return_value = True
    
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You\'ve been assigned to the issue')
    
        # no assignee, newcomer, no labels
        self.mock_team.is_member.return_value = True
        mock_issue.labels = tuple()
        mock_issue.assignees = tuple()
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'not eligible to be assigned to this issue')
        testbot.pop_message()
    
        # no assignee, newcomer, difficulty medium
        mock_issue.labels = ('difficulty/medium', )
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'not eligible to be assigned to this issue')
        testbot.pop_message()
    
        # no assignee, newcomer, difficulty medium
        labhub.GH_ORG_NAME = 'not-coala'
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'assigned')
        labhub.GH_ORG_NAME = 'coala'
    
        # newcomer, developer, difficulty/medium
        mock_dev_team.is_member.return_value = True
        mock_maint_team.is_member.return_value = False
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'assigned')
    
        # has assignee
        mock_issue.assignees = ('somebody', )
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
>                             'already assigned to someone')

tests/labhub_test.py:298: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <errbot.backends.test.TestBot object at 0x7f099e1c9fd0>
command = '!assign https://github.com/coala/a/issues/23'
response = 'already assigned to someone', timeout = 5

    def assertCommand(self, command, response, timeout=5):
        """Assert the given command returns the given response"""
        self.bot.push_message(command)
        msg = self.bot.pop_message(timeout)
>       assert response in msg, f'{response} not in {msg}.'
E       AssertionError: already assigned to someone not in Computer says nooo. See logs for details:
E       labhub/errors/already-assigned.jinja2.md.

../../../virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/backends/test.py:457: AssertionError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
----------------------------- Captured stderr call -----------------------------
2018-07-09 21:24:41,416 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 21:24:41,421 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 21:24:41,430 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 21:24:41,436 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 21:24:41,444 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
------------------------------ Captured log call -------------------------------
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
_______________________ TestLabHub.test_create_issue_cmd _______________________

self = <tests.labhub_test.TestLabHub testMethod=test_create_issue_cmd>

    def test_create_issue_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
        plugins.labhub.GitHubToken = create_autospec(IGitt.GitHub.GitHubToken)
        plugins.labhub.GitLabPrivateToken = create_autospec(IGitt.GitLab.GitLabPrivateToken)
    
        labhub, testbot_private = plugin_testbot(
            plugins.labhub.LabHub, 'LabHub', logging.ERROR,
            {'BACKEND': 'text', 'ACCESS_CONTROLS':{'create_issue_cmd' : {'allowprivate':False}}}
        )
        labhub.activate()
        labhub.REPOS = {'repository': self.mock_repo}
        plugins.labhub.GitHubToken.assert_called_with(None)
        plugins.labhub.GitLabPrivateToken.assert_called_with(None)
    
        # TODO
        # Ignoring assertion to prevent build failure for time being
        # Creating issue in private chat
        # testbot_private.assertCommand('!new issue repository this is the title\nbo\ndy',
        #                       'You\'re not allowed')
    
        # Creating issue in public chat
        labhub, testbot_public = plugin_testbot(
            plugins.labhub.LabHub, 'LabHub', logging.ERROR, {'BACKEND': 'text'}
        )
        labhub.activate()
        labhub.REPOS = {'repository': self.mock_repo,
                        'repository.github.io': self.mock_repo}
    
        testbot_public.assertCommand('!new issue repository this is the title\nbo\ndy',
                              'Here you go')
    
        labhub.REPOS['repository'].create_issue.assert_called_once_with(
            'this is the title', 'bo\ndy\nOpened by @None at [text]()'
        )
    
        testbot_public.assertCommand('!new issue repository.github.io another title\nand body',
                              'Here you go')
    
        labhub.REPOS['repository.github.io'].create_issue.assert_called_with(
            'another title', 'and body\nOpened by @None at [text]()'
        )
    
>       testbot_public.assertCommand('!new issue coala title', 'repository that does not exist')

tests/labhub_test.py:172: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <errbot.backends.test.TestBot object at 0x7f098852fb70>
command = '!new issue coala title', response = 'repository that does not exist'
timeout = 5

    def assertCommand(self, command, response, timeout=5):
        """Assert the given command returns the given response"""
        self.bot.push_message(command)
        msg = self.bot.pop_message(timeout)
>       assert response in msg, f'{response} not in {msg}.'
E       AssertionError: repository that does not exist not in Computer says nooo. See logs for details:
E       labhub/errors/no-repository.jinja2.md.

../../../virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/backends/test.py:457: AssertionError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!new issue coala title"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
----------------------------- Captured stderr call -----------------------------
2018-07-09 21:24:41,985 ERROR    errbot.core               An error happened while processing a message ("!new issue coala title"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
------------------------------ Captured log call -------------------------------
core.py                    469 ERROR    An error happened while processing a message ("!new issue coala title"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md

----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
plugins/__init__.py                     0      0   100%
plugins/answer.py                      25      0   100%
plugins/ban.py                         37      0   100%
plugins/coala_lowercase_c.py           12      0   100%
plugins/coatils.py                    120      0   100%
plugins/constants.py                    7      0   100%
plugins/deprecate_bot_prefixes.py       6      0   100%
plugins/explain.py                     21      0   100%
plugins/ghetto.py                      10      0   100%
plugins/git_stats.py                   51      0   100%
plugins/labhub.py                     215      9    96%   294-296, 341-345, 365-366, 381
plugins/lmgtfy.py                       4      0   100%
plugins/nevermind.py                    5      0   100%
plugins/pitchfork.py                   12      0   100%
plugins/searchdocs.py                  16      0   100%
plugins/ship_it.py                      7      0   100%
plugins/spam.py                        20      0   100%
plugins/the_rules.py                    5      0   100%
plugins/wolfram_alpha.py               18      0   100%
-----------------------------------------------------------------
TOTAL                                 591      9    98%

FAIL Required test coverage of 100% not reached. Total coverage: 98.48%
=============================== warnings summary ===============================
<undetermined location>
  Module already imported so cannot be rewritten: errbot.backends.test

tests/labhub_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

tests/spam_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============== 2 failed, 36 passed, 3 warnings in 101.21 seconds ===============

@TravisBuddy
Copy link

Travis tests have failed

Hey @nvzard,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

python -m pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.6.3, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.0, xdist-1.22.2, timeout-1.3.0, reqs-0.0.7, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1
collected 38 items                                                             

tests/answer_test.py .                                                   [  2%]
tests/ban_test.py ..                                                     [  7%]
tests/coala_lowercase_c_test.py ..                                       [ 13%]
tests/coatils_test.py ...........                                        [ 42%]
tests/deprecate_bot_prefixes_test.py .                                   [ 44%]
tests/explain_test.py .                                                  [ 47%]
tests/ghetto_test.py .                                                   [ 50%]
tests/git_stats_test.py .                                                [ 52%]
tests/labhub_test.py .FF......                                           [ 76%]
tests/lmgtfy_test.py .                                                   [ 78%]
tests/nevermind_test.py .                                                [ 81%]
tests/pitchfork_test.py .                                                [ 84%]
tests/searchdocs_test.py .                                               [ 86%]
tests/ship_it_test.py .                                                  [ 89%]
tests/spam_test.py ..                                                    [ 94%]
tests/the_rules_test.py .                                                [ 97%]
tests/wolfram_alpha_test.py .                                            [100%]

=================================== FAILURES ===================================
__________________________ TestLabHub.test_assign_cmd __________________________

self = <tests.labhub_test.TestLabHub testMethod=test_assign_cmd>

    def test_assign_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
        labhub, testbot = plugin_testbot(plugins.labhub.LabHub, 'LabHub', logging.ERROR)
        labhub.activate()
    
        mock_issue = create_autospec(GitHubIssue)
        self.mock_repo.get_issue.return_value = mock_issue
    
        labhub.REPOS = {'a': self.mock_repo}
    
        mock_dev_team = create_autospec(github3.orgs.Team)
        mock_maint_team = create_autospec(github3.orgs.Team)
        mock_dev_team.is_member.return_value = False
        mock_maint_team.is_member.return_value = False
    
        labhub.TEAMS = {'coala newcomers': self.mock_team,
                        'coala developers': mock_dev_team,
                        'coala maintainers': mock_maint_team}
    
        cmd = '!assign https://github.com/{}/{}/issues/{}'
        # no assignee, not newcomer
        mock_issue.assignees = tuple()
        self.mock_team.is_member.return_value = False
    
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You\'ve been assigned to the issue')
    
        # no assignee, newcomer, initiatives/gci
        mock_maint_team.is_member.return_value = False
        mock_dev_team.is_member.return_value = False
        mock_issue.labels = 'initiatives/gci',
        mock_issue.assignees = tuple()
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You are not eligible to be assigned'
                              ' to this issue')
        testbot.pop_message()
    
        # no assignee, developer, initiatives/gci
        mock_maint_team.is_member.return_value = False
        mock_dev_team.is_member.return_value = True
        mock_issue.labels = 'initiatives/gci',
        mock_issue.assignees = tuple()
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You are not eligible to be assigned'
                              ' to this issue')
        testbot.pop_message()
        mock_dev_team.is_member.return_value = False
    
        # no assignee, newcomer, difficulty/low
        mock_issue.labels = PropertyMock()
        mock_issue.labels = ('difficulty/low', )
        mock_issue.assignees = tuple()
        self.mock_team.is_member.return_value = True
    
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'You\'ve been assigned to the issue')
    
        # no assignee, newcomer, no labels
        self.mock_team.is_member.return_value = True
        mock_issue.labels = tuple()
        mock_issue.assignees = tuple()
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'not eligible to be assigned to this issue')
        testbot.pop_message()
    
        # no assignee, newcomer, difficulty medium
        mock_issue.labels = ('difficulty/medium', )
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'not eligible to be assigned to this issue')
        testbot.pop_message()
    
        # no assignee, newcomer, difficulty medium
        labhub.GH_ORG_NAME = 'not-coala'
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'assigned')
        labhub.GH_ORG_NAME = 'coala'
    
        # newcomer, developer, difficulty/medium
        mock_dev_team.is_member.return_value = True
        mock_maint_team.is_member.return_value = False
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
                              'assigned')
    
        # has assignee
        mock_issue.assignees = ('somebody', )
        testbot.assertCommand(cmd.format('coala', 'a', '23'),
>                             'already assigned to someone')

tests/labhub_test.py:298: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <errbot.backends.test.TestBot object at 0x7f61fcccce10>
command = '!assign https://github.com/coala/a/issues/23'
response = 'already assigned to someone', timeout = 5

    def assertCommand(self, command, response, timeout=5):
        """Assert the given command returns the given response"""
        self.bot.push_message(command)
        msg = self.bot.pop_message(timeout)
>       assert response in msg, f'{response} not in {msg}.'
E       AssertionError: already assigned to someone not in Computer says nooo. See logs for details:
E       labhub/errors/already-assigned.jinja2.md.

../../../virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/backends/test.py:457: AssertionError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
----------------------------- Captured stderr call -----------------------------
2018-07-09 22:11:14,727 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 22:11:14,732 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 22:11:14,738 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 22:11:14,741 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
2018-07-09 22:11:14,749 ERROR    errbot.core               An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
------------------------------ Captured log call -------------------------------
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 376, in assign_cmd
    'labhub/errors/not-eligible.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/not-eligible.jinja2.md
core.py                    469 ERROR    An error happened while processing a message ("!assign https://github.com/coala/a/issues/23"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 450, in _execute_and_send
    for reply in replies:
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 384, in assign_cmd
    'labhub/errors/already-assigned.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/already-assigned.jinja2.md
_______________________ TestLabHub.test_create_issue_cmd _______________________

self = <tests.labhub_test.TestLabHub testMethod=test_create_issue_cmd>

    def test_create_issue_cmd(self):
        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)
        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)
        plugins.labhub.GitHubToken = create_autospec(IGitt.GitHub.GitHubToken)
        plugins.labhub.GitLabPrivateToken = create_autospec(IGitt.GitLab.GitLabPrivateToken)
    
        labhub, testbot_private = plugin_testbot(
            plugins.labhub.LabHub, 'LabHub', logging.ERROR,
            {'BACKEND': 'text', 'ACCESS_CONTROLS':{'create_issue_cmd' : {'allowprivate':False}}}
        )
        labhub.activate()
        labhub.REPOS = {'repository': self.mock_repo}
        plugins.labhub.GitHubToken.assert_called_with(None)
        plugins.labhub.GitLabPrivateToken.assert_called_with(None)
    
        # TODO
        # Ignoring assertion to prevent build failure for time being
        # Creating issue in private chat
        # testbot_private.assertCommand('!new issue repository this is the title\nbo\ndy',
        #                       'You\'re not allowed')
    
        # Creating issue in public chat
        labhub, testbot_public = plugin_testbot(
            plugins.labhub.LabHub, 'LabHub', logging.ERROR, {'BACKEND': 'text'}
        )
        labhub.activate()
        labhub.REPOS = {'repository': self.mock_repo,
                        'repository.github.io': self.mock_repo}
    
        testbot_public.assertCommand('!new issue repository this is the title\nbo\ndy',
                              'Here you go')
    
        labhub.REPOS['repository'].create_issue.assert_called_once_with(
            'this is the title', 'bo\ndy\nOpened by @None at [text]()'
        )
    
        testbot_public.assertCommand('!new issue repository.github.io another title\nand body',
                              'Here you go')
    
        labhub.REPOS['repository.github.io'].create_issue.assert_called_with(
            'another title', 'and body\nOpened by @None at [text]()'
        )
    
>       testbot_public.assertCommand('!new issue coala title', 'repository that does not exist')

tests/labhub_test.py:172: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <errbot.backends.test.TestBot object at 0x7f61e7050128>
command = '!new issue coala title', response = 'repository that does not exist'
timeout = 5

    def assertCommand(self, command, response, timeout=5):
        """Assert the given command returns the given response"""
        self.bot.push_message(command)
        msg = self.bot.pop_message(timeout)
>       assert response in msg, f'{response} not in {msg}.'
E       AssertionError: repository that does not exist not in Computer says nooo. See logs for details:
E       labhub/errors/no-repository.jinja2.md.

../../../virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/backends/test.py:457: AssertionError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
ERROR    errbot.core               An error happened while processing a message ("!new issue coala title"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
----------------------------- Captured stderr call -----------------------------
2018-07-09 22:11:15,285 ERROR    errbot.core               An error happened while processing a message ("!new issue coala title"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
------------------------------ Captured log call -------------------------------
core.py                    469 ERROR    An error happened while processing a message ("!new issue coala title"): Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md
"
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 454, in _execute_and_send
    reply = method(msg, match) if match else method(msg, args)
  File "/home/travis/build/coala/corobo/plugins/labhub.py", line 186, in create_issue_cmd
    'labhub/errors/no-repository.jinja2.md'
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: labhub/errors/no-repository.jinja2.md

----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
plugins/__init__.py                     0      0   100%
plugins/answer.py                      25      0   100%
plugins/ban.py                         37      0   100%
plugins/coala_lowercase_c.py           12      0   100%
plugins/coatils.py                    120      0   100%
plugins/constants.py                    7      0   100%
plugins/deprecate_bot_prefixes.py       6      0   100%
plugins/explain.py                     21      0   100%
plugins/ghetto.py                      10      0   100%
plugins/git_stats.py                   51      0   100%
plugins/labhub.py                     215      9    96%   294-296, 341-345, 365-366, 381
plugins/lmgtfy.py                       4      0   100%
plugins/nevermind.py                    5      0   100%
plugins/pitchfork.py                   12      0   100%
plugins/searchdocs.py                  16      0   100%
plugins/ship_it.py                      7      0   100%
plugins/spam.py                        20      0   100%
plugins/the_rules.py                    5      0   100%
plugins/wolfram_alpha.py               18      0   100%
-----------------------------------------------------------------
TOTAL                                 591      9    98%

FAIL Required test coverage of 100% not reached. Total coverage: 98.48%
=============================== warnings summary ===============================
<undetermined location>
  Module already imported so cannot be rewritten: errbot.backends.test

tests/labhub_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

tests/spam_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============== 2 failed, 36 passed, 3 warnings in 95.08 seconds ===============

@nvzard
Copy link
Member Author

nvzard commented Jul 9, 2018

weird, all the tests are passing locally

tests/helper.py Outdated
config = config if config else dict()
testbot = TestBot(loglevel=loglevel, extra_config=config)
testbot.start()
plug = testbot.bot.plugin_manager.instanciateElement(klass)
plug = klass(testbot.bot, plugin_name)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def instanciateElement(self, element) -> BotPlugin:
    """Overrides the instanciation of plugins to inject the bot reference."""
    return element(self.bot, name=self._current_pluginfo.name)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@meetmangukiya @gbin does it make a difference, where a class gets instantiated?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is not the cause for failures. Facing the TemplateNotFound exception due to the changes made to errbot.templating by this commit errbotio/errbot@9a03b72#diff-b27e6e3f6d8b53f810de95de950feea9

Copy link
Member

@meetmangukiya meetmangukiya Jul 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured a workaround, explore yourself further, here's the patch that fixes it:

From d9858f2dc7162273d8315ae37bfee6467257599e Mon Sep 17 00:00:00 2001
From: Meet Mangukiya <[email protected]>
Date: Wed, 11 Jul 2018 06:44:23 +0530
Subject: [PATCH] Fix templating issue

---
 tests/labhub_test.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/labhub_test.py b/tests/labhub_test.py
index 9d69a64..e06b195 100644
--- a/tests/labhub_test.py
+++ b/tests/labhub_test.py
@@ -19,9 +19,21 @@ from plugins.labhub import LabHub
 
 from tests.helper import plugin_testbot
 
+
+import errbot
+from errbot.plugin_info import PluginInfo
+from errbot.templating import add_plugin_templates_path
+from pathlib import Path
+
+
 class TestLabHub(unittest.TestCase):
 
     def setUp(self):
+        labhub_info_path = Path(__file__).parent / '..' / 'plugins' / 'labhub.plug'
+        with labhub_info_path.open() as plugfile:
+            labhub_info = PluginInfo.load_file(plugfile, labhub_info_path)
+        add_plugin_templates_path(labhub_info)
+
         plugins.labhub.github3 = create_autospec(github3)
 
         self.mock_org = create_autospec(github3.orgs.Organization)
-- 
2.18.0

@gitmate-bot
Copy link

Comment on c5f4d95, file plugins/ban.py, line 73.

Broken link - unable to connect to https://api.gitter.im/v1/rooms/

Origin: InvalidLinkBear, Section: all.links.

@nvzard nvzard changed the title [WIP] requirements.txt: Update Errbot requirements.txt: Update Errbot Jul 11, 2018
@gitmate-bot
Copy link

Comment on f9e7c7e, file plugins/ban.py, line 39.

Broken link - unable to connect to https://api.gitter.im/v1/rooms/

Origin: InvalidLinkBear, Section: all.links.

@gitmate-bot
Copy link

Comment on b0c095c, file tests/labhub_test.py, line 417.

Broken link - unable to connect to https://gitlab.com/a/b/merge_requests/2

Origin: InvalidLinkBear, Section: all.links.

@nvzard nvzard force-pushed the nvzard/571 branch 2 times, most recently from 908d92a to 349e60f Compare July 30, 2018 18:16
@TravisBuddy
Copy link

Travis tests have failed

Hey @nvzard,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

coala --non-interactive -V
[WARNING][18:16:03] bears setting has already been defined in section all.python. The previous setting will be overridden.
[WARNING][18:16:03] bears setting has already been defined in section all.python. The previous setting will be overridden.
[DEBUG][18:16:03] Platform Linux -- Python 3.6.3, coalib 0.11.0
Executing section all...
[DEBUG][18:16:03] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
[DEBUG][18:16:03] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
Executing section all.whitespace...
[DEBUG][18:16:04] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
[DEBUG][18:16:04] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Use of change_line method is deprecated. Instead use modify_line method, without the original_line argument
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
[DEBUG][18:16:04] Running bear SpaceConsistencyBear...
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Tabs used instead of spaces.
|----|    | /home/travis/build/coala/corobo/tests/labhub_test.py
|    |++++| /home/travis/build/coala/corobo/tests/labhub_test.py
|  65|  65|         self.teams['coala developers'] = mock_team_developers
|  66|  66|         self.teams['coala maintainers'] = mock_team_maintainers
|  67|  67| 
|  68|    |-		mock_dict = {
|    |  68|+        mock_dict = {
|  69|  69|             'TEAMS': self.teams,
|  70|  70|             'is_room_member': MagicMock(),
|  71|  71|         }
[INFO][18:16:04] Applied 'ShowPatchAction' on 'tests/labhub_test.py' from 'SpaceConsistencyBear'.
Executing section all.python...
[DEBUG][18:16:04] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
[DEBUG][18:16:04] starting parse of '/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake'
[DEBUG][18:16:04] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['-m'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['pip'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['show'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['autoflake'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][18:16:04] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][18:16:04] started: CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={}), None, False
[DEBUG][18:16:04] Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake') created
[DEBUG][18:16:04] About to call Popen: ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'], {'stdout': -1, 'stderr': -1, 'stdin': None}
[DEBUG][18:16:04] Popen: Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake'), {'stdout': -1, 'stderr': -1, 'stdin': None} -> {'_waitpid_lock': <unlocked _thread.lock object at 0x7f247f11f1c0>, '_input': None, '_communication_started': False, 'args': ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'], 'stdin': None, 'stdout': <_io.BufferedReader name=18>, 'stderr': <_io.BufferedReader name=21>, 'pid': 5192, 'returncode': None, 'universal_newlines': False, 'encoding': None, 'errors': None, '_closed_child_pipe_fds': True, '_child_created': True}
[DEBUG][18:16:04] Created thread Thread-3 as reader for Capture-1
[DEBUG][18:16:04] Capture-1: reader thread about to read line
[DEBUG][18:16:04] Capture-1: reader thread kicked off, waiting start
[DEBUG][18:16:04] Capture-1: reader thread now started
[DEBUG][18:16:04] Created thread Thread-4 as reader for Capture-2
[DEBUG][18:16:04] Capture-2: reader thread about to read line
[DEBUG][18:16:04] Capture-2: reader thread kicked off, waiting start
[DEBUG][18:16:04] Capture-2: reader thread now started
[DEBUG][18:16:04] about to wait for process
[DEBUG][18:16:05] queued chunk of length 16 to <queue.Queue object at 0x7f247f11bda0>: b'Name: autoflake\n'
[DEBUG][18:16:05] queued chunk of length 15 to <queue.Queue object at 0x7f247f11bda0>: b'Version: 0.6.6\n'
[DEBUG][18:16:05] queued chunk of length 54 to <queue.Queue object at 0x7f247f11bda0>: b'Summary: Removes unused import'
[DEBUG][18:16:05] queued chunk of length 46 to <queue.Queue object at 0x7f247f11bda0>: b'Home-page: https://github.com/'
[DEBUG][18:16:05] queued chunk of length 21 to <queue.Queue object at 0x7f247f11bda0>: b'Author: Steven Myint\n'
[DEBUG][18:16:05] queued chunk of length 22 to <queue.Queue object at 0x7f247f11bda0>: b'Author-email: UNKNOWN\n'
[DEBUG][18:16:05] queued chunk of length 23 to <queue.Queue object at 0x7f247f11bda0>: b'License: Expat License\n'
[DEBUG][18:16:05] queued chunk of length 74 to <queue.Queue object at 0x7f247f11bda0>: b'Location: /home/travis/virtual'
[DEBUG][18:16:05] queued chunk of length 19 to <queue.Queue object at 0x7f247f11bda0>: b'Requires: pyflakes\n'
[DEBUG][18:16:05] Capture-1: finished reading stream <_io.BufferedReader name=18>
[DEBUG][18:16:05] Capture-2: finished reading stream <_io.BufferedReader name=21>
[DEBUG][18:16:05] returning Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake') (Popen(returncode=0 stdin=None stdout=<_io.BufferedReader name=18> stderr=<_io.BufferedReader name=21>))
[DEBUG][18:16:05] pipeline closing
[DEBUG][18:16:05] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
[DEBUG][18:16:05] Running bear PyUnusedCodeBear...
Executing section all.autopep8...
[DEBUG][18:16:05] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
[DEBUG][18:16:05] starting parse of '/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8'
[DEBUG][18:16:05] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['-m'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['pip'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['show'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['autopep8'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][18:16:05] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][18:16:05] started: CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}), None, False
[DEBUG][18:16:05] Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8') created
[DEBUG][18:16:05] About to call Popen: ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'], {'stdout': -1, 'stderr': -1, 'stdin': None}
[DEBUG][18:16:05] Popen: Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8'), {'stdout': -1, 'stderr': -1, 'stdin': None} -> {'_waitpid_lock': <unlocked _thread.lock object at 0x7f247f11f030>, '_input': None, '_communication_started': False, 'args': ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'], 'stdin': None, 'stdout': <_io.BufferedReader name=20>, 'stderr': <_io.BufferedReader name=23>, 'pid': 5236, 'returncode': None, 'universal_newlines': False, 'encoding': None, 'errors': None, '_closed_child_pipe_fds': True, '_child_created': True}
[DEBUG][18:16:05] Created thread Thread-6 as reader for Capture-3
[DEBUG][18:16:05] Capture-3: reader thread about to read line
[DEBUG][18:16:05] Capture-3: reader thread kicked off, waiting start
[DEBUG][18:16:05] Capture-3: reader thread now started
[DEBUG][18:16:05] Created thread Thread-7 as reader for Capture-4
[DEBUG][18:16:05] Capture-4: reader thread about to read line
[DEBUG][18:16:05] Capture-4: reader thread kicked off, waiting start
[DEBUG][18:16:05] Capture-4: reader thread now started
[DEBUG][18:16:05] about to wait for process
[DEBUG][18:16:06] queued chunk of length 15 to <queue.Queue object at 0x7f247f129240>: b'Name: autopep8\n'
[DEBUG][18:16:06] queued chunk of length 15 to <queue.Queue object at 0x7f247f129240>: b'Version: 1.3.5\n'
[DEBUG][18:16:06] queued chunk of length 91 to <queue.Queue object at 0x7f247f129240>: b'Summary: A tool that automatic'
[DEBUG][18:16:06] queued chunk of length 46 to <queue.Queue object at 0x7f247f129240>: b'Home-page: https://github.com/'
[DEBUG][18:16:06] queued chunk of length 22 to <queue.Queue object at 0x7f247f129240>: b'Author: Hideo Hattori\n'
[DEBUG][18:16:06] queued chunk of length 34 to <queue.Queue object at 0x7f247f129240>: b'Author-email: hhatto.jp@gmail.'
[DEBUG][18:16:06] queued chunk of length 23 to <queue.Queue object at 0x7f247f129240>: b'License: Expat License\n'
[DEBUG][18:16:06] queued chunk of length 74 to <queue.Queue object at 0x7f247f129240>: b'Location: /home/travis/virtual'
[DEBUG][18:16:06] queued chunk of length 22 to <queue.Queue object at 0x7f247f129240>: b'Requires: pycodestyle\n'
[DEBUG][18:16:06] Capture-3: finished reading stream <_io.BufferedReader name=20>
[DEBUG][18:16:06] Capture-4: finished reading stream <_io.BufferedReader name=23>
[DEBUG][18:16:06] returning Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8') (Popen(returncode=0 stdin=None stdout=<_io.BufferedReader name=20> stderr=<_io.BufferedReader name=23>))
[DEBUG][18:16:06] pipeline closing
[DEBUG][18:16:06] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PycodestyleBear...
[DEBUG][18:16:06] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/explain.py'
[DEBUG][18:16:06] Running bear PycodestyleBear...
[DEBUG][18:16:06] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/coala_lowercase_c.py'
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PycodestyleBear...
[DEBUG][18:16:06] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/nevermind.py'
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PycodestyleBear...
[DEBUG][18:16:06] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/coatils.py'
[DEBUG][18:16:06] Running bear PycodestyleBear...
[DEBUG][18:16:06] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/ban.py'
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PEP8Bear...
[DEBUG][18:16:06] Running bear PycodestyleBear...
[DEBUG][18:16:06] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/wolfram_alpha.py'
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/coatils_test.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/extraction.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/searchdocs_test.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/__init__.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/ship_it.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/__init__.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/pitchfork_test.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/lmgtfy_test.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/service.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/corobo_test_case.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:07] Running bear PycodestyleBear...
[DEBUG][18:16:07] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/spam.py'
[DEBUG][18:16:07] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/answer_test.py'
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/the_rules_test.py'
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/lmgtfy.py'
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/git_stats.py'
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/ghetto_test.py'
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/utils.py'
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/searchdocs.py'
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/pitchfork.py'
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/final.py'
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PEP8Bear...
[DEBUG][18:16:08] Running bear PycodestyleBear...
[DEBUG][18:16:08] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/nevermind_test.py'
[DEBUG][18:16:09] Running bear PEP8Bear...
[DEBUG][18:16:09] Running bear PycodestyleBear...
[DEBUG][18:16:09] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/labhub.py'
[DEBUG][18:16:09] Running bear PEP8Bear...
[DEBUG][18:16:09] Running bear PycodestyleBear...
[DEBUG][18:16:09] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/git_stats_test.py'
[DEBUG][18:16:09] Use of change_line method is deprecated. Instead use modify_line method, without the original_line argument
[DEBUG][18:16:09] Running bear PycodestyleBear...
[DEBUG][18:16:09] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/labhub_test.py'
[DEBUG][18:16:09] Running bear PEP8Bear...
[DEBUG][18:16:09] Running bear PycodestyleBear...
[DEBUG][18:16:09] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/ship_it_test.py'
|    | [NORMAL] PEP8Bear:
|    | The code does not comply to PEP8.
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PEP8Bear...
|----|    | /home/travis/build/coala/corobo/tests/labhub_test.py
|    |++++| /home/travis/build/coala/corobo/tests/labhub_test.py
|  65|  65|         self.teams['coala developers'] = mock_team_developers
|  66|  66|         self.teams['coala maintainers'] = mock_team_maintainers
|  67|  67| 
|  68|    |-		mock_dict = {
|  69|    |-            'TEAMS': self.teams,
|  70|    |-            'is_room_member': MagicMock(),
|  71|    |-        }
|    |  68|+            mock_dict = {
|    |  69|+                'TEAMS': self.teams,
|    |  70|+                'is_room_member': MagicMock(),
|    |  71|+                }
|  72|  72|         self.inject_mocks('LabHub', mock_dict)
|  73|  73|         testbot = self
|  74|  74| 
[INFO][18:16:10] Applied 'ShowPatchAction' on 'tests/labhub_test.py' from 'PEP8Bear'.
[WARNING][18:16:10] PycodestyleBear (E101): This result has no patch attached.
[WARNING][18:16:10] PycodestyleBear (W191): This result has no patch attached.
[WARNING][18:16:10] PycodestyleBear (E113): This result has no patch attached.
[WARNING][18:16:10] PycodestyleBear (E101): This result has no patch attached.
[WARNING][18:16:10] PycodestyleBear (E122): This result has no patch attached.
[WARNING][18:16:10] PycodestyleBear (E122): This result has no patch attached.
[WARNING][18:16:10] PycodestyleBear (E122): This result has no patch attached.

tests/labhub_test.py
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/ghetto.py'
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py'
|  68| »   »   mock_dict·=·{
|    | [NORMAL] PycodestyleBear (E101):
|    | E101 indentation contains mixed spaces and tabs

tests/labhub_test.py
|  68| »   »   mock_dict·=·{
|    | [NORMAL] PycodestyleBear (W191):
|    | W191 indentation contains tabs

tests/labhub_test.py
|  68| »   »   mock_dict·=·{
|    | [NORMAL] PycodestyleBear (E113):
|    | E113 unexpected indentation

tests/labhub_test.py
|  69| ············'TEAMS':·self.teams,
|    | [NORMAL] PycodestyleBear (E101):
|    | E101 indentation contains mixed spaces and tabs

tests/labhub_test.py
|  69| ············'TEAMS':·self.teams,
|    | [NORMAL] PycodestyleBear (E122):
|    | E122 continuation line missing indentation or outdented

tests/labhub_test.py
|  70| ············'is_room_member':·MagicMock(),
|    | [NORMAL] PycodestyleBear (E122):
|    | E122 continuation line missing indentation or outdented

tests/labhub_test.py
|  71| ········}
|    | [NORMAL] PycodestyleBear (E122):
|    | E122 continuation line missing indentation or outdented
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/constants.py'
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/config.py'
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/__init__.py'
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/spam_test.py'
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/ban_test.py'
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/explain_test.py'
[DEBUG][18:16:10] Running bear PycodestyleBear...
[DEBUG][18:16:10] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/the_rules.py'
[DEBUG][18:16:10] Running bear PEP8Bear...
[DEBUG][18:16:11] Running bear PEP8Bear...
[DEBUG][18:16:11] Running bear PycodestyleBear...
[DEBUG][18:16:11] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/wolfram_alpha_test.py'
[DEBUG][18:16:11] Running bear PycodestyleBear...
[DEBUG][18:16:11] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py'
[DEBUG][18:16:11] Running bear PEP8Bear...
[DEBUG][18:16:11] Running bear PEP8Bear...
[DEBUG][18:16:11] Running bear PycodestyleBear...
[DEBUG][18:16:11] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py'
[DEBUG][18:16:11] Running bear PycodestyleBear...
[DEBUG][18:16:11] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/answer.py'
Executing section all.linelength...
[DEBUG][18:16:11] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
[DEBUG][18:16:11] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
[DEBUG][18:16:11] Running bear LineLengthBear...
Executing section all.links...
[DEBUG][18:16:12] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
[DEBUG][18:16:12] Starting new HTTP connection (1): 216.58.218.174:80
[DEBUG][18:16:12] http://216.58.218.174:80 "HEAD / HTTP/1.1" 301 0
[DEBUG][18:16:12] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Starting new HTTPS connection (1): api.gitmate.io:443
[DEBUG][18:16:12] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][18:16:12] https://api.gitter.im:443 "HEAD /v1/rooms HTTP/1.1" 401 0
[DEBUG][18:16:12] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][18:16:12] https://api.gitter.im:443 "HEAD /v1/rooms/ HTTP/1.1" 401 0
[DEBUG][18:16:12] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][18:16:12] https://api.gitter.im:443 "HEAD /v1/rooms HTTP/1.1" 401 0
[DEBUG][18:16:12] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][18:16:12] https://api.gitmate.io:443 "HEAD /coala_online/ HTTP/1.1" 405 0
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Starting new HTTP connection (1): i.imgur.com:80
[DEBUG][18:16:12] https://api.gitter.im:443 "HEAD /v1/rooms/ HTTP/1.1" 401 0
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Running bear InvalidLinkBear...
[DEBUG][18:16:12] Starting new HTTPS connection (1): www.lmgtfy.com:443
[DEBUG][18:16:12] http://i.imgur.com:80 "HEAD /DPVM1.png HTTP/1.1" 200 0
[DEBUG][18:16:12] Starting new HTTP connection (1): d2f8dzk2mhcqts.cloudfront.net:80
[DEBUG][18:16:12] http://d2f8dzk2mhcqts.cloudfront.net:80 "HEAD /0772_PEW_Roundup/09_Squirrel.jpg HTTP/1.1" 200 0
[DEBUG][18:16:12] Starting new HTTP connection (1): www.cybersalt.org:80
[DEBUG][18:16:13] https://www.lmgtfy.com:443 "HEAD /?q=py HTTP/1.1" 200 0
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Starting new HTTP connection (1): 0.0.0.0:8000
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Starting new HTTP connection (1): www.gizoogle.net:80
[DEBUG][18:16:13] http://www.cybersalt.org:80 "HEAD /images/funnypictures/s/supersquirrel.jpg HTTP/1.1" 200 0
[DEBUG][18:16:13] Starting new HTTP connection (1): www.zmescience.com:80
[DEBUG][18:16:13] http://www.zmescience.com:80 "HEAD /wp-content/uploads/2010/09/squirrel.jpg HTTP/1.1" 301 0
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Starting new HTTPS connection (1): gitter.im:443
[DEBUG][18:16:13] https://gitter.im:443 "HEAD /coala/coala/offtopic HTTP/1.1" 200 0
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Starting new HTTP connection (1): www.gizoogle.net:80
[DEBUG][18:16:13] http://www.gizoogle.net:80 "HEAD /textilizer.php HTTP/1.1" 200 0
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] Running bear InvalidLinkBear...
[DEBUG][18:16:13] http://www.gizoogle.net:80 "HEAD /textilizer.php HTTP/1.1" 200 0
Executing section jinja2...
[DEBUG][18:16:13] Files that will be checked:
/home/travis/build/coala/corobo/plugins/templates/the_rules.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/spam_alert.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/lmgtfy.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/hello-world.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/not-eligible-invite.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/not-eligible.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/no-repository.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/already-assigned.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/promotions/developers.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/promotions/newcomers.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/promotions/maintainers.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/cep.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/gitlab.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/rebase.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/commit.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/closes.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/review.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/fixes.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/promotion.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/google.jinja2.md
[DEBUG][18:16:13] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
[DEBUG][18:16:13] Running bear Jinja2Bear...
Executing section commit...
[DEBUG][18:16:14] Files that will be checked:
[DEBUG][18:16:14] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
Executing section cli...
[DEBUG][18:16:14] Files that will be checked:
[DEBUG][18:16:14] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
python -m pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.6.4, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.2, xdist-1.22.5, travis-fold-1.3.0, timeout-1.3.1, reqs-0.0.7, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1
collected 29 items / 1 errors                                                  

==================================== ERRORS ====================================
____________________ ERROR collecting tests/labhub_test.py _____________________
../../../virtualenv/python3.6.3/lib/python3.6/site-packages/_pytest/python.py:468: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
../../../virtualenv/python3.6.3/lib/python3.6/site-packages/py/_path/local.py:668: in pyimport
    __import__(modname)
E     File "/home/travis/build/coala/corobo/tests/labhub_test.py", line 68
E       mock_dict = {
E                   ^
E   TabError: inconsistent use of tabs and spaces in indentation

travis_fold:start:py-5516.cov.0
----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
plugins/__init__.py                     0      0   100%
plugins/answer.py                      25     15    40%   17-22, 26-55
plugins/ban.py                         37     31    16%   19-45, 54-79
plugins/coala_lowercase_c.py           12     12     0%   1-26
plugins/coatils.py                    118    102    14%   19, 23-24, 28-35, 49-100, 111-129, 133-143, 147-162, 175-244
plugins/constants.py                    7      0   100%
plugins/deprecate_bot_prefixes.py       6      6     0%   1-17
plugins/explain.py                     20      9    55%   30-44
plugins/ghetto.py                      10     10     0%   1-28
plugins/git_stats.py                   51     42    18%   19, 26-78
plugins/labhub.py                     236    196    17%   21-30, 43-83, 87, 91, 94, 101-102, 106, 117-165, 175-185, 193-208, 216-220, 228-249, 257-299, 313-410, 418-426, 432-463
plugins/lmgtfy.py                       4      1    75%   15
plugins/nevermind.py                    5      5     0%   1-14
plugins/pitchfork.py                   12     12     0%   1-39
plugins/searchdocs.py                  16     16     0%   1-34
plugins/ship_it.py                      7      7     0%   1-28
plugins/spam.py                        20     20     0%   1-51
plugins/the_rules.py                    5      1    80%   19
plugins/wolfram_alpha.py               18     12    33%   14-15, 22-31
-----------------------------------------------------------------
TOTAL                                 609    497    18%
travis_fold:end:py-5516.cov.0

FAIL Required test coverage of 100% not reached. Total coverage: 18.39%
=============================== warnings summary ===============================
<undetermined location>
  Module already imported so cannot be rewritten: errbot.backends.test

tests/spam_test.py::TestBot
  cannot collect test class 'TestBot' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
===================== 2 warnings, 1 error in 2.04 seconds ======================

@gitmate-bot
Copy link

Comment on b0c095c, file tests/labhub_test.py, line 417.

Broken link - unable to connect to https://gitlab.com/a/b/merge_requests/2

Origin: InvalidLinkBear, Section: all.links.

@gitmate-bot
Copy link

Comment on b0c095c, file tests/labhub_test.py, line 417.

Broken link - unable to connect to https://gitlab.com/a/b/merge_requests/2

Origin: InvalidLinkBear, Section: all.links.

@gitmate-bot
Copy link

Comment on b0c095c, file tests/labhub_test.py, line 417.

Broken link - unable to connect to https://gitlab.com/a/b/merge_requests/2

Origin: InvalidLinkBear, Section: all.links.

@gitmate-bot
Copy link

Comment on 672e516, file plugins/pitchfork.py, line 35.

Broken link - unable to connect to https://gitter.im/coala/coala/offtopic

Origin: InvalidLinkBear, Section: all.links.

@gitmate-bot
Copy link

Comment on 672e516, file plugins/ship_it.py, line 14.

Broken link - unable to connect to http://i.imgur.com/DPVM1.png

Origin: InvalidLinkBear, Section: all.links.

Shift from `tests.helper.plugin_testbot` to
`CoroboTestCase` for loading plugins in the
TestBot.

Closes coala#584
@gitmate-bot
Copy link

Comment on b0c095c, file tests/labhub_test.py, line 417.

Broken link - unable to connect to https://gitlab.com/a/b/merge_requests/2

Origin: InvalidLinkBear, Section: all.links.

Copy link
Member

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of little things, but mostly not your problem.

I am quite worried that the private chat test is still disabled.

labhub._teams = self.teams
mock_dict = {
'TEAMS': self.teams,
'is_room_member': MagicMock(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think you need to inject a mock for is_room_member.

Probably can just move staticmethod is_room_member out of the class, and then use normal patching.

Copy link
Member Author

@nvzard nvzard Jul 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened a difficulty/low issue for all these minor changes #594

'is_room_member': MagicMock(),
}
self.inject_mocks('LabHub', mock_dict)
testbot = self

plugins.labhub.os.environ['GH_TOKEN'] = 'patched?'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line isnt necessary any more either,
or , it shouldnt be in test_invite_cmd -- it should be in a separate test method.


plugins.labhub.os.environ['GH_TOKEN'] = 'patched?'

self.assertEqual(labhub.TEAMS, self.teams)
self.assertEqual(self.labhub.TEAMS, self.teams)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test was only confirming the mock was in place. assertEqual is wrong. It should be assertIs.

@@ -79,7 +97,7 @@ def test_invite_cmd(self):

# invite by developer
mock_team_maintainers.is_member.return_value = False
labhub.is_room_member = MagicMock(return_value=True)
mock_dict['is_room_member'].return_value = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is already True.
unnecessary.

@@ -161,14 +162,8 @@ def test_create_issue_cmd(self):
# Stop ignoring
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isnt fixed in the new errbot ?

Copy link
Member Author

@nvzard nvzard Jul 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jayvdb ACL's are working as they are supposed to. But it is not actually possible to test ACLs since the message/ACL cannot be mocked from here.
ACL is well tested by the framework as it is an upstream plugin and tested upstream, one always trusts their upstream or dependencies.

@jayvdb
Copy link
Member

jayvdb commented Jul 30, 2018

ack a9d99de

@jayvdb
Copy link
Member

jayvdb commented Jul 30, 2018

@gitmate-bot ff

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@gitmate-bot gitmate-bot merged commit a9d99de into coala:master Jul 30, 2018
@gitmate-bot
Copy link

Automated fastforward with GitMate.io was successful! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants