From 0cb80801b15b41cf20c3cde821599456c9fe6495 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 4 Dec 2023 01:14:58 +0200 Subject: [PATCH] Resolve pylint warnings in partial and test_api_thread - mostly suppress --- src/tests/partial.py | 1 + src/tests/test_api_thread.py | 1 + 2 files changed, 2 insertions(+) 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)