Resolve pylint warnings in partial and test_api_thread - mostly suppress

This commit is contained in:
Lee Miller 2023-12-04 01:14:58 +02:00
parent 7c153c0eb8
commit 0cb80801b1
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class TestPartialRun(unittest.TestCase):
from debug import logger # noqa:F401 pylint: disable=unused-variable
if sys.hexversion >= 0x3000000:
# pylint: disable=no-name-in-module,relative-import
from mock import network as network_mock
import network
network.stats = network_mock.stats

View File

@ -61,6 +61,7 @@ class TestAPIThread(TestPartialRun):
self.assertEqual(data, sample_statusbar_msg)
def test_client_status(self):
"""Ensure the reply of clientStatus corresponds to mock"""
status = self.api.clientStatus()
if sys.hexversion >= 0x3000000:
self.assertEqual(status["networkConnections"], 4)