#586 Pylint fixes
Merged 3 years ago by vmaljulin. Opened 3 years ago by vmaljulin.
vmaljulin/greenwave release_branch  into  master

@@ -17,4 +17,5 @@ 

      )

      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)

@@ -44,8 +44,8 @@ 

          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 @@ 

          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

no initial comment

Pull-Request has been merged by vmaljulin

3 years ago