Improved dev test

This commit is contained in:
Sven Heidemann 2020-11-26 17:57:51 +01:00
parent 1e0d7d60a5
commit cd7c12bba4
2 changed files with 22 additions and 22 deletions

View File

@ -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()

21
src/tests_dev/program.py Normal file
View File

@ -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')