diff --git a/src/tests/partial.py b/src/tests/partial.py index ce39c9df..c88c6031 100644 --- a/src/tests/partial.py +++ b/src/tests/partial.py @@ -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 diff --git a/src/tests/test_api_thread.py b/src/tests/test_api_thread.py index 5164ce5d..e3218b85 100644 --- a/src/tests/test_api_thread.py +++ b/src/tests/test_api_thread.py @@ -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)