From c5dee5f22e0f6fea3456653eb2ea24ed2e66eea9 Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Fri, 3 Dec 2021 12:31:28 +0530 Subject: [PATCH] Fixed linter --- src/tests/mock/bitmessagemock.py | 3 ++- src/tests/mock/inventory.py | 1 + src/tests/mock/network/connectionpool.py | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/mock/bitmessagemock.py b/src/tests/mock/bitmessagemock.py index 4f023ea0..71055c62 100644 --- a/src/tests/mock/bitmessagemock.py +++ b/src/tests/mock/bitmessagemock.py @@ -1,2 +1,3 @@ def main(): - pass \ No newline at end of file + """Mock main function""" + pass diff --git a/src/tests/mock/inventory.py b/src/tests/mock/inventory.py index 6468865d..4148156f 100644 --- a/src/tests/mock/inventory.py +++ b/src/tests/mock/inventory.py @@ -3,6 +3,7 @@ # TODO make this dynamic, and watch out for frozen, like with messagetypes from singleton import Singleton + # pylint: disable=old-style-class,too-few-public-methods @Singleton class MockInventory(): diff --git a/src/tests/mock/network/connectionpool.py b/src/tests/mock/network/connectionpool.py index 9aa16363..9347103d 100644 --- a/src/tests/mock/network/connectionpool.py +++ b/src/tests/mock/network/connectionpool.py @@ -3,12 +3,11 @@ """ import logging -import asyncore_pollchoose as asyncore -from bmconfigparser import BMConfigParser from singleton import Singleton logger = logging.getLogger('default') + # pylint: disable=too-few-public-methods @Singleton class MockBMConnectionPool(object):