mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 01:20:16 +00:00
Added Mocks to help aid the process of creation of the textual TUI
This commit is contained in:
parent
103b9a9da1
commit
03fb3b23c2
@@ -1,13 +1,17 @@
|
||||
from pilgrim.database import Database
|
||||
from pilgrim.service.mocks.service_manager_mock import ServiceManagerMock
|
||||
from pilgrim.service.servicemanager import ServiceManager
|
||||
from pilgrim.ui.ui import UIApp
|
||||
|
||||
|
||||
class Application:
|
||||
def __init__(self):
|
||||
self.database = Database()
|
||||
self.ui = UIApp(ServiceManagerMock())
|
||||
|
||||
def run(self):
|
||||
self.database.create()
|
||||
self.ui.run()
|
||||
|
||||
def get_service_manager(self):
|
||||
session = self.database.session()
|
||||
|
||||
Reference in New Issue
Block a user