From 839769b367880af2dd26cc5172f3b4e5f9dd7961 Mon Sep 17 00:00:00 2001 From: Valerij Maljulin Date: Aug 26 2020 10:19:57 +0000 Subject: Pylint fixes --- diff --git a/greenwave/tests/test_product_versions.py b/greenwave/tests/test_product_versions.py index fcf0a69..2127185 100644 --- a/greenwave/tests/test_product_versions.py +++ b/greenwave/tests/test_product_versions.py @@ -17,4 +17,5 @@ def test_guess_koji_build_product_version_socket_error(task_id): ) expected = 'Could not reach Koji: timed out' with pytest.raises(ConnectionError, match=expected): + # pylint: disable=protected-access product_versions._guess_koji_build_product_version(subject_identifier, mock_proxy, task_id) diff --git a/greenwave/xmlrpc_server_proxy.py b/greenwave/xmlrpc_server_proxy.py index 543e4cc..158ac6b 100644 --- a/greenwave/xmlrpc_server_proxy.py +++ b/greenwave/xmlrpc_server_proxy.py @@ -44,8 +44,8 @@ class Transport(xmlrpc.client.Transport): super().__init__(*args, **kwargs) self._timeout = timeout - def make_connection(self, *args, **kwargs): # pragma: no cover - connection = super().make_connection(*args, **kwargs) + def make_connection(self, host): # pragma: no cover + connection = super().make_connection(host) connection.timeout = self._timeout return connection @@ -55,7 +55,7 @@ class SafeTransport(xmlrpc.client.SafeTransport): super().__init__(*args, **kwargs) self._timeout = timeout - def make_connection(self, *args, **kwargs): # pragma: no cover - connection = super().make_connection(*args, **kwargs) + def make_connection(self, host): # pragma: no cover + connection = super().make_connection(host) connection.timeout = self._timeout return connection