fixes for pyLint

This commit is contained in:
Bastian Schroll 2018-09-18 05:59:38 +02:00
parent 3564680867
commit 3f1eac88be
14 changed files with 35 additions and 34 deletions

View file

@ -26,7 +26,7 @@ class Test_ServerClient:
"""!Unittest for the server/client environment"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
@pytest.fixture(scope="function")
def useServer(self):

View file

@ -24,7 +24,7 @@ class Test_Config:
"""!Unittests for the config"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_loadLocalConfig(self):
"""!load a local config file"""

View file

@ -23,7 +23,7 @@ class Test_Decoder:
"""!Unittests for the decoder"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_decoderNoData(self):
"""!Test a empty string"""

View file

@ -25,7 +25,7 @@ class Test_Descriptor:
"""!Unittests for the descriptor"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_loadCsvNotExist(self):
"""!read CSV file where not exist direct per DescriptionList class"""

View file

@ -22,7 +22,7 @@ import boswatch.filter.doubeFilter
class Test_DoubleFilter:
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_none(self):
pass

View file

@ -23,7 +23,7 @@ class Test_Header:
"""!Unittests for the header"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_logoToLog(self):
"""!Test logo to log"""

View file

@ -24,7 +24,7 @@ class Test_Packet:
"""!Unittests for the BOSWatch packet"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
@pytest.fixture(scope="function")
def buildPacket(self):

View file

@ -24,7 +24,7 @@ class Test_Config:
"""!Unittests for the paths"""
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_fileExists(self):
"""!load a local config file"""

View file

@ -22,7 +22,7 @@ import logging
class Test_Watchdog:
def setup_method(self, method):
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
logging.debug("[TEST] %s.%s", (type(self).__name__, method.__name__))
def test_none(self):
pass