From cd7c12bba43710049b0681d15323a0ad2023ab14 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 26 Nov 2020 17:57:51 +0100 Subject: [PATCH] Improved dev test --- src/tests_dev/main.py | 23 +---------------------- src/tests_dev/program.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 src/tests_dev/program.py diff --git a/src/tests_dev/main.py b/src/tests_dev/main.py index 6516be08..02718764 100644 --- a/src/tests_dev/main.py +++ b/src/tests_dev/main.py @@ -1,25 +1,4 @@ -from sh_edraft.hosting import ApplicationHost -from sh_edraft.hosting.base.application_base import ApplicationBase - - -class Program(ApplicationBase): - - def __init__(self): - ApplicationBase.__init__(self) - - self._app_host = ApplicationHost('CPL_DEV_Test') - self._config = self._app_host.services.config - self._services = self._app_host.services - - def create_configuration(self): - self._config.create() - - def create_services(self): - self._services.create() - - def main(self): - print('RUN') - +from tests_dev.program import Program if __name__ == '__main__': program = Program() diff --git a/src/tests_dev/program.py b/src/tests_dev/program.py new file mode 100644 index 00000000..59f95aa8 --- /dev/null +++ b/src/tests_dev/program.py @@ -0,0 +1,21 @@ +from sh_edraft.hosting import ApplicationHost +from sh_edraft.hosting.base.application_base import ApplicationBase + + +class Program(ApplicationBase): + + def __init__(self): + ApplicationBase.__init__(self) + + self._app_host = ApplicationHost('CPL_DEV_Test') + self._config = self._app_host.services.config + self._services = self._app_host.services + + def create_configuration(self): + self._config.create() + + def create_services(self): + self._services.create() + + def main(self): + print('RUN')