Removed pass from empty functions
All checks were successful
Build on push / prepare (push) Successful in 9s
Build on push / core (push) Successful in 17s
Build on push / query (push) Successful in 17s
Build on push / dependency (push) Successful in 17s
Build on push / translation (push) Successful in 14s
Build on push / mail (push) Successful in 18s
Build on push / database (push) Successful in 18s
Build on push / application (push) Successful in 24s
Build on push / auth (push) Successful in 14s

This commit is contained in:
2025-09-17 20:49:15 +02:00
parent 836b92ccbf
commit 41087a838b
38 changed files with 49 additions and 205 deletions

View File

@@ -13,8 +13,7 @@ class Application(ApplicationABC):
def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):
ApplicationABC.__init__(self, config, services)
def configure(self):
pass
def configure(self): ...
def main(self):
runner = unittest.TextTestRunner()

View File

@@ -2,8 +2,6 @@ from unittests_cli.abc.command_test_case import CommandTestCase
class CustomTestCase(CommandTestCase):
def setUp(self):
pass
def setUp(self): ...
def test_equal(self):
pass
def test_equal(self): ...

View File

@@ -26,8 +26,7 @@ class VersionTestCase(CommandTestCase):
self._block_packages = ""
self._name = "CPL CLI"
def setUp(self):
pass
def setUp(self): ...
def _get_version_output(self, version: str):
index = 0

View File

@@ -4,8 +4,7 @@ from cpl.core.pipes import BoolPipe
class BoolPipeTestCase(unittest.TestCase):
def setUp(self):
pass
def setUp(self): ...
def test_transform(self):
self.assertEqual("true", BoolPipe.to_str(True))

View File

@@ -4,8 +4,7 @@ from cpl.core.pipes import IPAddressPipe
class IPAddressTestCase(unittest.TestCase):
def setUp(self):
pass
def setUp(self): ...
def test_transform(self):
self.assertEqual("192.168.178.1", IPAddressPipe.to_str([192, 168, 178, 1]))

View File

@@ -4,8 +4,7 @@ from cpl.core.utils import CredentialManager
class CredentialManagerTestCase(unittest.TestCase):
def setUp(self):
pass
def setUp(self): ...
def test_encrypt(self):
self.assertEqual("ZkVjSkplQUx4aW1zWHlPbA==", CredentialManager.encrypt("fEcJJeALximsXyOl"))

View File

@@ -18,8 +18,7 @@ class TestClass:
class JSONProcessorTestCase(unittest.TestCase):
def setUp(self):
pass
def setUp(self): ...
def test_process(self):
test_dict = {

View File

@@ -5,8 +5,7 @@ from cpl.core.utils import String
class StringTestCase(unittest.TestCase):
def setUp(self):
pass
def setUp(self): ...
def test_convert_to_camel_case(self):
expected = "HelloWorld"

View File

@@ -20,8 +20,7 @@ class TranslationTestCase(unittest.TestCase):
self._translation.set_default_lang("de")
self._translate = TranslatePipe(self._translation)
def cleanUp(self):
pass
def cleanUp(self): ...
def test_service(self):
self.assertEqual("Hallo Welt", self._translation.translate("main.text.hello_world"))