Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [130] ~/devel/gitmate-2 master > export GITHUB_TEST_REPO=gitmate-test-user/test :(
- ~/devel/gitmate-2 master > export GITHUB_TEST_TOKEN=XXXXXXXXXXXXXXXXX
- ~/devel/gitmate-2 master > export GITHUB_WEBHOOK_SECRET=XXXXXXXXXXXXX
- ~/devel/gitmate-2 master > export DB_USER="XXXXXX"
- ~/devel/gitmate-2 master > export DB_NAME="XXXXXXX"
- ~/devel/gitmate-2 master > export DB_PASSWORD="XXXXXXXX"
- ~/devel/gitmate-2 master > export DEBUG=TRUE
- ~/devel/gitmate-2 master > py.test
- ========================================================================== test session starts ==========================================================================
- platform linux -- Python 3.6.1, pytest-3.1.0, py-1.4.32, pluggy-0.4.0
- Django settings: gitmate.settings (from ini file)
- rootdir: /home/fabian/devel/gitmate-2, inifile: pytest.ini
- plugins: django-3.1.2, cov-2.5.1
- collected 36 items
- gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py FF
- gitmate_bug_spotter/tests/test_bug_spotter.py F
- gitmate_config/tests/management/test_commands.py ..
- gitmate_config/tests/models/test_plugin.py .....
- gitmate_config/tests/models/test_repository.py .......
- gitmate_config/tests/views/test_api.py .
- gitmate_config/tests/views/test_repositories.py ....
- gitmate_config/tests/views/test_settings.py .....
- gitmate_hooks/tests/test_receivers.py ....
- gitmate_hooks/tests/test_registrar.py F.
- gitmate_issue_labeller/tests/test_issue_labeller.py F
- gitmate_pr_size_labeller/tests/test_pr_size_labeller.py F
- gitmate_welcome_commenter/tests/test_welcome_commenter.py F
- =============================================================================== FAILURES ================================================================================
- _________________________________________________ TestAutoLabelPendingOrWip.test_github_change_label_to_process_pending _________________________________________________
- self = <test_auto_label_pending_or_wip.TestAutoLabelPendingOrWip testMethod=test_github_change_label_to_process_pending>
- mocked_labels = <PropertyMock name='labels' id='140178838481776'>
- @patch.object(GitHubIssue, 'labels', new_callable=PropertyMock)
- def test_github_change_label_to_process_pending(self, mocked_labels):
- mocked_labels.return_value.add = MagicMock()
- response = self.simulate_github_webhook_call(
- 'pull_request', self.github_data)
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- > mocked_labels().add.assert_called_with('process/pending_review')
- gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py:28:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- _mock_self = <MagicMock name='labels().add' id='140178835978000'>, args = ('process/pending_review',), kwargs = {}, expected = "add('process/pending_review')"
- def assert_called_with(_mock_self, *args, **kwargs):
- """assert that the mock was called with the specified arguments.
- Raises an AssertionError if the args and keyword args passed in are
- different to the last call to the mock."""
- self = _mock_self
- if self.call_args is None:
- expected = self._format_mock_call_signature(args, kwargs)
- > raise AssertionError('Expected call: %s\nNot called' % (expected,))
- E AssertionError: Expected call: add('process/pending_review')
- E Not called
- /usr/lib64/python3.6/unittest/mock.py:805: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- Operations to perform:
- Apply all migrations: gitmate_testplugin
- Running migrations:
- Applying gitmate_testplugin.0001_initial... OK
- Applying gitmate_testplugin.0002_auto_20170217_0738... OK
- Plugin updated successfully: "code_analysis"
- Plugin updated successfully: "welcome_commenter"
- Plugin updated successfully: "auto_label_pending_or_wip"
- Plugin updated successfully: "pr_size_labeller"
- Plugin updated successfully: "issue_labeller"
- Plugin updated successfully: "bug_spotter"
- Plugin updated successfully: "testplugin"
- ERROR: A responder failed.
- Responder: <@task: gitmate_auto_label_pending_or_wip.responders.mark_pending_review_or_wip_accordingly of gitmate:0x7f7df1e6db70>
- Args: (<IGitt.GitHub.GitHubMergeRequest.GitHubMergeRequest object at 0x7f7dede2fe80>,)
- Options: {'wip_label': 'process/WIP', 'pending_review_label': 'process/pending_review'}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- ___________________________________________________ TestAutoLabelPendingOrWip.test_github_change_label_to_process_wip ___________________________________________________
- self = <test_auto_label_pending_or_wip.TestAutoLabelPendingOrWip testMethod=test_github_change_label_to_process_wip>
- mocked_labels = <PropertyMock name='labels' id='140178839995616'>, args = (<PropertyMock name='title' id='140178839995224'>,)
- response = <Response status_code=200, "text/html; charset=utf-8">
- @patch.object(GitHubIssue, 'title',
- new_callable=PropertyMock,
- return_value='WIP: Fühl mich betrunken')
- @patch.object(GitHubIssue, 'labels', new_callable=PropertyMock)
- def test_github_change_label_to_process_wip(self, mocked_labels, *args):
- mocked_labels.return_value.add = MagicMock()
- response = self.simulate_github_webhook_call(
- 'pull_request', self.github_data)
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- > mocked_labels().add.assert_called_with('process/WIP')
- gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py:39:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- _mock_self = <MagicMock name='labels().add' id='140178839995168'>, args = ('process/WIP',), kwargs = {}, expected = "add('process/WIP')"
- def assert_called_with(_mock_self, *args, **kwargs):
- """assert that the mock was called with the specified arguments.
- Raises an AssertionError if the args and keyword args passed in are
- different to the last call to the mock."""
- self = _mock_self
- if self.call_args is None:
- expected = self._format_mock_call_signature(args, kwargs)
- > raise AssertionError('Expected call: %s\nNot called' % (expected,))
- E AssertionError: Expected call: add('process/WIP')
- E Not called
- /usr/lib64/python3.6/unittest/mock.py:805: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- ERROR: A responder failed.
- Responder: <@task: gitmate_auto_label_pending_or_wip.responders.mark_pending_review_or_wip_accordingly of gitmate:0x7f7df1e6db70>
- Args: (<IGitt.GitHub.GitHubMergeRequest.GitHubMergeRequest object at 0x7f7df7340438>,)
- Options: {'wip_label': 'process/WIP', 'pending_review_label': 'process/pending_review'}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- ______________________________________________________________________ TestBugSpotter.test_github _______________________________________________________________________
- self = <test_bug_spotter.TestBugSpotter testMethod=test_github>, m_aff_files = <PropertyMock name='affected_files' id='140178833667800'>
- m_clone = <function get_clone at 0x7f7dede4fae8>, m_labels = <PropertyMock name='labels' id='140178834810248'>
- @patch.object(GitHubIssue, 'labels', new_callable=PropertyMock)
- @patch.object(GitHubRepository, 'get_clone', autospec=True)
- @patch.object(GitHubMergeRequest, 'affected_files',
- new_callable=PropertyMock)
- def test_github(self, m_aff_files, m_clone, m_labels):
- m_aff_files.return_value = {os.path.basename(f) for f in self.files}
- m_clone.return_value = (None, self.gitdir, )
- m_labels.return_value.add = MagicMock()
- data = {
- 'repository': {'full_name': self.repo.full_name},
- 'pull_request': {'number': 7},
- 'action': 'synchronize'
- }
- response = self.simulate_github_webhook_call('pull_request', data)
- > m_clone.assert_called()
- gitmate_bug_spotter/tests/test_bug_spotter.py:89:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib64/python3.6/unittest/mock.py:197: in assert_called
- return mock.assert_called(*args, **kwargs)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- _mock_self = <MagicMock name='get_clone' spec='function' id='140178833667296'>
- def assert_called(_mock_self):
- """assert that the mock was called at least once
- """
- self = _mock_self
- if self.call_count == 0:
- msg = ("Expected '%s' to have been called." %
- self._mock_name or 'mock')
- > raise AssertionError(msg)
- E AssertionError: Expected 'get_clone' to have been called.
- /usr/lib64/python3.6/unittest/mock.py:786: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- ERROR: A responder failed.
- Responder: <@task: gitmate_bug_spotter.responders.label_hotspots of gitmate:0x7f7df1e6db70>
- Args: (<IGitt.GitHub.GitHubMergeRequest.GitHubMergeRequest object at 0x7f7deda778d0>,)
- Options: {'pattern': '(fix(e[sd])?|close[sd]?|resolve[sd]?) #[1-9][0-9]*', 'hotspot_label': 'review carefully!'}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- _______________________________________________________________ TestResponderRegistrar.test_active_plugin _______________________________________________________________
- self = <test_registrar.TestResponderRegistrar testMethod=test_active_plugin>
- def test_active_plugin(self):
- self.assertEqual(
- [result.get() for result in ResponderRegistrar.respond(
- MergeRequestActions.OPENED, self.repo, 'example',
- options={'test_var': True})],
- > [True]
- )
- E AssertionError: Lists differ: [] != [True]
- E
- E Second list contains 1 additional elements.
- E First extra element 0:
- E True
- E
- E - []
- E + [True]
- gitmate_hooks/tests/test_registrar.py:22: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- ERROR: A responder failed.
- Responder: <@task: test_registrar.test_responder of gitmate:0x7f7df1e6db70>
- Args: ('example',)
- Options: {'test_var': True}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- _____________________________________________________________________ TestIssueLabeller.test_github _____________________________________________________________________
- self = <test_issue_labeller.TestIssueLabeller testMethod=test_github>, m_issue = <MagicMock name='__init__' id='140178833794944'>
- m_labels = <PropertyMock name='labels' id='140178976230536'>, m_avail_labels = <PropertyMock name='available_labels' id='140178976230816'>
- m_title = <PropertyMock name='title' id='140178976228632'>, m_desc = <PropertyMock name='description' id='140178833528088'>
- @patch.object(GitHubIssue, 'description', new_callable=PropertyMock)
- @patch.object(GitHubIssue, 'title', new_callable=PropertyMock)
- @patch.object(GitHubIssue, 'available_labels', new_callable=PropertyMock)
- @patch.object(GitHubIssue, 'labels', new_callable=PropertyMock)
- @patch.object(GitHubIssue, '__init__', return_value=None)
- def test_github(self, m_issue, m_labels, m_avail_labels, m_title, m_desc):
- # clear all the labels
- m_labels.return_value = set()
- # give some random labels
- m_avail_labels.return_value = ['apples', 'spaceships', 'bears']
- # set some random summary
- m_title.return_value = 'Shape of you'
- m_desc.return_value = 'Make coala bears sing this song!'
- data = {
- 'repository': {'full_name': environ['GITHUB_TEST_REPO']},
- 'issue': {'number': 0},
- 'action': 'opened'
- }
- response = self.simulate_github_webhook_call('issues', data)
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- > m_labels.assert_called()
- gitmate_issue_labeller/tests/test_issue_labeller.py:40:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- _mock_self = <PropertyMock name='labels' id='140178976230536'>
- def assert_called(_mock_self):
- """assert that the mock was called at least once
- """
- self = _mock_self
- if self.call_count == 0:
- msg = ("Expected '%s' to have been called." %
- self._mock_name or 'mock')
- > raise AssertionError(msg)
- E AssertionError: Expected 'labels' to have been called.
- /usr/lib64/python3.6/unittest/mock.py:786: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- ERROR: A responder failed.
- Responder: <@task: gitmate_issue_labeller.responders.add_labels_to_issue of gitmate:0x7f7df1e6db70>
- Args: (<IGitt.GitHub.GitHubIssue.GitHubIssue object at 0x7f7ded93d278>,)
- Options: {'blacklisted_labels': ['invalid', 'duplicate', 'bounty']}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- ____________________________________________________________________ TestPRSizeLabeller.test_github _____________________________________________________________________
- self = <test_pr_size_labeller.TestPRSizeLabeller testMethod=test_github>, m_labels = <PropertyMock name='labels' id='140178834797792'>
- m_diffstat = <PropertyMock name='diffstat' id='140178834800480'>
- @patch.object(GitHubMergeRequest, 'diffstat', new_callable=PropertyMock)
- @patch.object(GitHubIssue, 'labels', new_callable=PropertyMock)
- def test_github(self, m_labels, m_diffstat):
- for label, diffstat in self.test_labels.items():
- m_diffstat.return_value = diffstat
- response = self.simulate_github_webhook_call('pull_request',
- self.github_data)
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- # Check for label getter call
- > m_labels.assert_called()
- gitmate_pr_size_labeller/tests/test_pr_size_labeller.py:39:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- _mock_self = <PropertyMock name='labels' id='140178834797792'>
- def assert_called(_mock_self):
- """assert that the mock was called at least once
- """
- self = _mock_self
- if self.call_count == 0:
- msg = ("Expected '%s' to have been called." %
- self._mock_name or 'mock')
- > raise AssertionError(msg)
- E AssertionError: Expected 'labels' to have been called.
- /usr/lib64/python3.6/unittest/mock.py:786: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- ERROR: A responder failed.
- Responder: <@task: gitmate_pr_size_labeller.responders.add_labels_based_on_size of gitmate:0x7f7df1e6db70>
- Args: (<IGitt.GitHub.GitHubMergeRequest.GitHubMergeRequest object at 0x7f7deda6d0f0>,)
- Options: {}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- ___________________________________________________________________ TestWelcomeCommenter.test_github ____________________________________________________________________
- self = <test_welcome_commenter.TestWelcomeCommenter testMethod=test_github>, mock_add_comment = <function add_comment at 0x7f7dede4fbf8>
- @patch('IGitt.GitHub.GitHubIssue.GitHubIssue.add_comment', autospec=True)
- def test_github(self, mock_add_comment):
- data = {
- 'repository': {'full_name': environ['GITHUB_TEST_REPO']},
- 'pull_request': {'number': 7},
- 'action': 'opened'
- }
- response = self.simulate_github_webhook_call('pull_request', data)
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- > mock_add_comment.assert_called_once()
- gitmate_welcome_commenter/tests/test_welcome_commenter.py:24:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib64/python3.6/unittest/mock.py:201: in assert_called_once
- return mock.assert_called_once(*args, **kwargs)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- _mock_self = <MagicMock name='add_comment' spec='function' id='140178836963904'>
- def assert_called_once(_mock_self):
- """assert that the mock was called only once.
- """
- self = _mock_self
- if not self.call_count == 1:
- msg = ("Expected '%s' to have been called once. Called %s times." %
- (self._mock_name or 'mock', self.call_count))
- > raise AssertionError(msg)
- E AssertionError: Expected 'add_comment' to have been called once. Called 0 times.
- /usr/lib64/python3.6/unittest/mock.py:795: AssertionError
- ------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------
- ERROR: A responder failed.
- Responder: <@task: gitmate_welcome_commenter.responders.add_welcome_comment of gitmate:0x7f7df1e6db70>
- Args: (<IGitt.GitHub.GitHubMergeRequest.GitHubMergeRequest object at 0x7f7dedf42080>,)
- Options: {'autorespond_text': ''}
- ------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 423, in __call__
- return self.__value__
- AttributeError: 'ChannelPromise' object has no attribute '__value__'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 449, in _ensured
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 177, in _publish
- channel = self.channel
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 194, in _get_channel
- channel = self._channel = channel()
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 425, in __call__
- value = self.__value__ = self.__contract__()
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 209, in <lambda>
- channel = ChannelPromise(lambda: connection.default_channel)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 771, in default_channel
- self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/fabian/devel/gitmate-2/gitmate_hooks/__init__.py", line 101, in respond
- retvals.append(responder.delay(*args, **options_specified))
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 461, in delay
- return self.apply_async(args, kwargs)
- File "/usr/lib/python3.6/site-packages/celery/app/task.py", line 573, in apply_async
- **dict(self._get_exec_options(), **options)
- File "/usr/lib/python3.6/site-packages/celery/app/base.py", line 354, in send_task
- reply_to=reply_to or self.oid, **options
- File "/usr/lib/python3.6/site-packages/celery/app/amqp.py", line 310, in publish_task
- **kwargs
- File "/usr/lib/python3.6/site-packages/kombu/messaging.py", line 172, in publish
- routing_key, mandatory, immediate, exchange, declare)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 470, in _ensured
- interval_max)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 382, in ensure_connection
- interval_start, interval_step, interval_max, callback)
- File "/usr/lib/python3.6/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
- return fun(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 250, in connect
- return self.connection
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 756, in connection
- self._connection = self._establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/connection.py", line 711, in _establish_connection
- conn = self.transport.establish_connection()
- File "/usr/lib/python3.6/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
- conn = self.Connection(**opts)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 165, in __init__
- self.transport = self.Transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/connection.py", line 186, in Transport
- return create_transport(host, connect_timeout, ssl)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 299, in create_transport
- return TCPTransport(host, connect_timeout)
- File "/usr/lib/python3.6/site-packages/amqp/transport.py", line 75, in __init__
- socket.SOCK_STREAM, SOL_TCP):
- File "/usr/lib64/python3.6/socket.py", line 743, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- =========================================================================== warnings summary ============================================================================
- gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py::TestAutoLabelPendingOrWip::test_github_change_label_to_process_pending
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 41368), raddr=('192.30.253.117', 443)>
- response, code = func(*args, **kwargs)
- /home/fabian/devel/gitmate-2/gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py:27: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py::TestAutoLabelPendingOrWip::test_github_change_label_to_process_wip
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 41370), raddr=('192.30.253.117', 443)>
- response, code = func(*args, **kwargs)
- /home/fabian/devel/gitmate-2/gitmate_auto_label_pending_or_wip/tests/test_auto_label_pending_or_wip.py:38: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- gitmate_bug_spotter/tests/test_bug_spotter.py::TestBugSpotter::test_github
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16820 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16821 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16822 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16823 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16824 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16825 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16826 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16827 is still running
- ResourceWarning, source=self)
- /usr/lib64/python3.6/subprocess.py:761: ResourceWarning: subprocess 16828 is still running
- ResourceWarning, source=self)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 41372), raddr=('192.30.253.117', 443)>
- response, code = func(*args, **kwargs)
- gitmate_config/tests/management/test_commands.py::TestCommands::test_upmate
- /home/fabian/devel/gitmate-2/gitmate_config/tests/management/test_commands.py:23: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(len(plugins), len(settings.GITMATE_PLUGINS))
- gitmate_config/tests/views/test_repositories.py::TestRepositories::test_activate_repo
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36368), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36370), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36372), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36374), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36376), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36378), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36380), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36382), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36384), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36386), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- gitmate_config/tests/views/test_repositories.py::TestRepositories::test_get_repos
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36388), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- gitmate_config/tests/views/test_repositories.py::TestRepositories::test_igitt_repo_creation
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36390), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- gitmate_config/tests/views/test_settings.py::TestSettings::test_update_plugin_settings_authorized
- /home/fabian/devel/gitmate-2/gitmate_config/tests/views/test_settings.py:133: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- gitmate_issue_labeller/tests/test_issue_labeller.py::TestIssueLabeller::test_github
- /home/fabian/devel/gitmate-2/gitmate_issue_labeller/tests/test_issue_labeller.py:38: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- gitmate_pr_size_labeller/tests/test_pr_size_labeller.py::TestPRSizeLabeller::test_github
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36392), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /home/fabian/devel/gitmate-2/gitmate_pr_size_labeller/tests/test_pr_size_labeller.py:36: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- gitmate_welcome_commenter/tests/test_welcome_commenter.py::TestWelcomeCommenter::test_github
- /usr/lib/python3.6/site-packages/IGitt/GitHub/__init__.py:26: ResourceWarning: unclosed <ssl.SSLSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.103', 36394), raddr=('192.30.253.116', 443)>
- response, code = func(*args, **kwargs)
- /home/fabian/devel/gitmate-2/gitmate_welcome_commenter/tests/test_welcome_commenter.py:23: DeprecationWarning: Please use assertEqual instead.
- self.assertEquals(response.status_code, status.HTTP_200_OK)
- -- Docs: http://doc.pytest.org/en/latest/warnings.html
- =========================================================== 7 failed, 29 passed, 33 warnings in 48.49 seconds ===========================================================
- sys:1: ResourceWarning: unclosed file <_io.BufferedReader name=39>
- sys:1: ResourceWarning: unclosed file <_io.BufferedWriter name=35>
- sys:1: ResourceWarning: unclosed file <_io.BufferedReader name=37>
- [1] ~/devel/gitmate-2 master >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement