Resolve pylint warnings in partial and test_api_thread - mostly suppress
This commit is contained in:
parent
7c153c0eb8
commit
0cb80801b1
|
@ -23,6 +23,7 @@ class TestPartialRun(unittest.TestCase):
|
||||||
|
|
||||||
from debug import logger # noqa:F401 pylint: disable=unused-variable
|
from debug import logger # noqa:F401 pylint: disable=unused-variable
|
||||||
if sys.hexversion >= 0x3000000:
|
if sys.hexversion >= 0x3000000:
|
||||||
|
# pylint: disable=no-name-in-module,relative-import
|
||||||
from mock import network as network_mock
|
from mock import network as network_mock
|
||||||
import network
|
import network
|
||||||
network.stats = network_mock.stats
|
network.stats = network_mock.stats
|
||||||
|
|
|
@ -61,6 +61,7 @@ class TestAPIThread(TestPartialRun):
|
||||||
self.assertEqual(data, sample_statusbar_msg)
|
self.assertEqual(data, sample_statusbar_msg)
|
||||||
|
|
||||||
def test_client_status(self):
|
def test_client_status(self):
|
||||||
|
"""Ensure the reply of clientStatus corresponds to mock"""
|
||||||
status = self.api.clientStatus()
|
status = self.api.clientStatus()
|
||||||
if sys.hexversion >= 0x3000000:
|
if sys.hexversion >= 0x3000000:
|
||||||
self.assertEqual(status["networkConnections"], 4)
|
self.assertEqual(status["networkConnections"], 4)
|
||||||
|
|
Reference in New Issue
Block a user