Fixed code quality

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-12-17 17:26:18 +05:30
parent f614cb5862
commit a9fb41821a
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A

View File

@ -1,3 +1,6 @@
"""
Bitmessage mock
"""
from pybitmessage.class_addressGenerator import addressGenerator
from pybitmessage.class_singleWorker import singleWorker
from pybitmessage.class_objectProcessor import objectProcessor
@ -5,12 +8,14 @@ from pybitmessage.inventory import Inventory
from pybitmessage.bmconfigparser import BMConfigParser
class MockMain():
# pylint: disable=too-few-public-methods
class MockMain:
"""Mock main function"""
# pylint: disable=no-self-use
def start(self):
"""Start main application"""
# pylint: disable=too-many-statements,too-many-branches,too-many-locals
# pylint: disable=too-many-statements,too-many-branches,too-many-locals, unused-variable
config = BMConfigParser()
daemon = config.safeGetBoolean('bitmessagesettings', 'daemon')