Improved dev test
This commit is contained in:
parent
1e0d7d60a5
commit
cd7c12bba4
@ -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
21
src/tests_dev/program.py
Normal 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')
|
Loading…
Reference in New Issue
Block a user