2022.6 #88
@ -4,18 +4,17 @@ from unittest import TestSuite
|
|||||||
from cpl_core.application import ApplicationABC
|
from cpl_core.application import ApplicationABC
|
||||||
from cpl_core.configuration import ConfigurationABC
|
from cpl_core.configuration import ConfigurationABC
|
||||||
from cpl_core.dependency_injection import ServiceProviderABC
|
from cpl_core.dependency_injection import ServiceProviderABC
|
||||||
from unittests.test_case import TestCase
|
from unittests_cli.cli_test_suite import CLITestSuite
|
||||||
|
|
||||||
|
|
||||||
class Application(ApplicationABC):
|
class Application(ApplicationABC):
|
||||||
|
|
||||||
def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):
|
def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):
|
||||||
ApplicationABC.__init__(self, config, services)
|
ApplicationABC.__init__(self, config, services)
|
||||||
self._suite: TestSuite = unittest.TestSuite()
|
|
||||||
|
|
||||||
def configure(self):
|
def configure(self):
|
||||||
self._suite.addTest(TestCase('test_equal'))
|
pass
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
runner = unittest.TextTestRunner()
|
runner = unittest.TextTestRunner()
|
||||||
runner.run(self._suite)
|
runner.run(CLITestSuite())
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
import unittest
|
|
||||||
|
|
||||||
|
|
||||||
class TestCase(unittest.TestCase):
|
|
||||||
|
|
||||||
def setUp(self) -> None:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def test_equal(self):
|
|
||||||
self.assertEqual(True, True)
|
|
10
src/tests/unittests_cli/add_test_case.py
Normal file
10
src/tests/unittests_cli/add_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class AddTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/build_test_case.py
Normal file
10
src/tests/unittests_cli/build_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class BuildTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
34
src/tests/unittests_cli/cli_test_suite.py
Normal file
34
src/tests/unittests_cli/cli_test_suite.py
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
from unittests_cli.add_test_case import AddTestCase
|
||||||
|
from unittests_cli.build_test_case import BuildTestCase
|
||||||
|
from unittests_cli.generate_test_case import GenerateTestCase
|
||||||
|
from unittests_cli.install_test_case import InstallTestCase
|
||||||
|
from unittests_cli.new_test_case import NewTestCase
|
||||||
|
from unittests_cli.publish_test_case import PublishTestCase
|
||||||
|
from unittests_cli.remove_test_case import RemoveTestCase
|
||||||
|
from unittests_cli.run_test_case import RunTestCase
|
||||||
|
from unittests_cli.start_test_case import StartTestCase
|
||||||
|
from unittests_cli.uninstall_test_case import UninstallTestCase
|
||||||
|
from unittests_cli.update_test_case import UpdateTestCase
|
||||||
|
from unittests_cli.version_test_case import VersionTestCase
|
||||||
|
|
||||||
|
|
||||||
|
class CLITestSuite(unittest.TestSuite):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
unittest.TestSuite.__init__(self)
|
||||||
|
|
||||||
|
loader = unittest.TestLoader()
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(AddTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(BuildTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(GenerateTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(InstallTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(NewTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(PublishTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(RemoveTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(RunTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(StartTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(UninstallTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(UpdateTestCase))
|
||||||
|
self.addTests(loader.loadTestsFromTestCase(VersionTestCase))
|
10
src/tests/unittests_cli/custom_test_case.py
Normal file
10
src/tests/unittests_cli/custom_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class CustomTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/generate_test_case.py
Normal file
10
src/tests/unittests_cli/generate_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class GenerateTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/install_test_case.py
Normal file
10
src/tests/unittests_cli/install_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class InstallTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/new_test_case.py
Normal file
10
src/tests/unittests_cli/new_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class NewTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/publish_test_case.py
Normal file
10
src/tests/unittests_cli/publish_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class PublishTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/remove_test_case.py
Normal file
10
src/tests/unittests_cli/remove_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class RemoveTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/run_test_case.py
Normal file
10
src/tests/unittests_cli/run_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class RunTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/start_test_case.py
Normal file
10
src/tests/unittests_cli/start_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class StartTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/uninstall_test_case.py
Normal file
10
src/tests/unittests_cli/uninstall_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class UninstallTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/update_test_case.py
Normal file
10
src/tests/unittests_cli/update_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class UpdateTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
10
src/tests/unittests_cli/version_test_case.py
Normal file
10
src/tests/unittests_cli/version_test_case.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class VersionTestCase(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_equal(self):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user