2023.4 #168
@ -1,6 +1,7 @@
|
|||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
|
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
|
||||||
|
from cpl_core.utils import String
|
||||||
|
|
||||||
|
|
||||||
class ApplicationExtension(GenerateSchematicABC):
|
class ApplicationExtension(GenerateSchematicABC):
|
||||||
@ -22,7 +23,7 @@ class ApplicationExtension(GenerateSchematicABC):
|
|||||||
def run(self, config: ConfigurationABC, services: ServiceProviderABC):
|
def run(self, config: ConfigurationABC, services: ServiceProviderABC):
|
||||||
pass
|
pass
|
||||||
"""
|
"""
|
||||||
x = self.build_code_str(code, Name=self._class_name)
|
x = self.build_code_str(code, Name=String.convert_to_camel_case(self._class_name))
|
||||||
return x
|
return x
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
|
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
|
||||||
|
from cpl_core.utils import String
|
||||||
|
|
||||||
|
|
||||||
class StartupExtension(GenerateSchematicABC):
|
class StartupExtension(GenerateSchematicABC):
|
||||||
@ -26,7 +27,7 @@ class StartupExtension(GenerateSchematicABC):
|
|||||||
def configure_services(self, services: ServiceCollectionABC, env: ApplicationEnvironmentABC):
|
def configure_services(self, services: ServiceCollectionABC, env: ApplicationEnvironmentABC):
|
||||||
pass
|
pass
|
||||||
"""
|
"""
|
||||||
x = self.build_code_str(code, Name=self._class_name)
|
x = self.build_code_str(code, Name=String.convert_to_camel_case(self._class_name))
|
||||||
return x
|
return x
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
|
from cpl_cli.abc.generate_schematic_abc import GenerateSchematicABC
|
||||||
|
from cpl_core.utils import String
|
||||||
|
|
||||||
|
|
||||||
class TestCase(GenerateSchematicABC):
|
class TestCase(GenerateSchematicABC):
|
||||||
@ -20,7 +21,7 @@ class TestCase(GenerateSchematicABC):
|
|||||||
def test_equal(self):
|
def test_equal(self):
|
||||||
pass
|
pass
|
||||||
"""
|
"""
|
||||||
return self.build_code_str(code, Name=self._class_name)
|
return self.build_code_str(code, Name=String.convert_to_camel_case(self._class_name))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def register(cls):
|
def register(cls):
|
||||||
|
24
unittests/unittests_core/core_test_suite.py
Normal file
24
unittests/unittests_core/core_test_suite.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
from unittests_core.utils.string_test_case import StringTestCase
|
||||||
|
from unittests_query.enumerable_query_test_case import EnumerableQueryTestCase
|
||||||
|
from unittests_query.enumerable_test_case import EnumerableTestCase
|
||||||
|
from unittests_query.iterable_query_test_case import IterableQueryTestCase
|
||||||
|
from unittests_query.iterable_test_case import IterableTestCase
|
||||||
|
from unittests_query.sequence_test_case import SequenceTestCase
|
||||||
|
|
||||||
|
|
||||||
|
class QueryTestSuite(unittest.TestSuite):
|
||||||
|
def __init__(self):
|
||||||
|
unittest.TestSuite.__init__(self)
|
||||||
|
|
||||||
|
loader = unittest.TestLoader()
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(StringTestCase))
|
||||||
|
|
||||||
|
def run(self, *args):
|
||||||
|
super().run(*args)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
runner = unittest.TextTestRunner()
|
||||||
|
runner.run(QueryTestSuite())
|
16
unittests/unittests_core/test_startup_extension.py
Normal file
16
unittests/unittests_core/test_startup_extension.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from cpl_core.application.startup_extension_abc import StartupExtensionABC
|
||||||
|
from cpl_core.configuration.configuration_abc import ConfigurationABC
|
||||||
|
from cpl_core.dependency_injection.service_collection_abc import ServiceCollectionABC
|
||||||
|
from cpl_core.environment.application_environment_abc import ApplicationEnvironmentABC
|
||||||
|
|
||||||
|
|
||||||
|
class TestStartup_extension(StartupExtensionABC):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def configure_configuration(self, config: ConfigurationABC, env: ApplicationEnvironmentABC):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def configure_services(self, services: ServiceCollectionABC, env: ApplicationEnvironmentABC):
|
||||||
|
pass
|
0
unittests/unittests_core/utils/__init__.py
Normal file
0
unittests/unittests_core/utils/__init__.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class CredentialManagerTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
unittests/unittests_core/utils/string_test_case.py
Normal file
10
unittests/unittests_core/utils/string_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class StringTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user