def __init__(self, rendering): from gui.application import Gui from gui.applicationlogic import GuiApplicationLogic from gui.controller.mainwindowcustomizer import MainWindowCustomizer from gui.view.appmainwindow import AppMainWindow self.logic = GuiApplicationLogic() self.gui = Gui(self.logic, AppMainWindow) self.logic.register_gui(self.gui.get_main_window(), MainWindowCustomizer) if rendering: register_rendering_task_types(self.logic)
def setUp(self): super(TestGui, self).setUp() from gui.application import Gui from gui.view.appmainwindow import AppMainWindow self.logic = MagicMock() self.gui = Gui(self.logic, AppMainWindow)
def setUp(self): TestDirFixtureWithReactor.setUp(self) self.client = Client.__new__(Client) from threading import Lock self.client.lock = Lock() self.client.task_tester = None self.logic = GuiApplicationLogic() self.app = Gui(self.logic, AppMainWindow)
def setUp(self): DatabaseFixture.setUp(self) LogTestCase.setUp(self) self.client = Client.__new__(Client) from threading import Lock self.client.lock = Lock() self.client.task_tester = None self.logic = GuiApplicationLogic() self.app = Gui(self.logic, AppMainWindow)
class GUIApp(object): def __init__(self, rendering): from gui.application import Gui from gui.applicationlogic import GuiApplicationLogic from gui.controller.mainwindowcustomizer import MainWindowCustomizer from gui.view.appmainwindow import AppMainWindow self.logic = GuiApplicationLogic() self.gui = Gui(self.logic, AppMainWindow) self.logic.register_gui(self.gui.get_main_window(), MainWindowCustomizer) if rendering: register_rendering_task_types(self.logic) @inlineCallbacks def start(self, client): yield self.logic.register_client(client) yield self.logic.start() self.gui.execute()
def setUp(self): super(TestEnvironmentsDialogCustomizer, self).setUp() self.logic = MagicMock() self.gui = Gui(self.logic, AppMainWindow) self.gui.main_window.show = MagicMock() self.dialog = EnvironmentsDialog(self.gui.main_window.window) self.env_count = 3 self.envs = [ dict(id='ENVIRONMENT_{}'.format(i), supported=i % 2 == 0, description='description {}'.format(i), accepted=i % 2 == 0) for i in range(self.env_count) ] deferred = Deferred() deferred.callback(self.envs) self.logic.get_environments = Mock() self.logic.get_environments.return_value = deferred
def setUp(self): super(TestLuxRenderDialogCustomizer, self).setUp() self.logic = GuiApplicationLogic() self.gui = Gui(Mock(), AppMainWindow)
def setUp(self): super(TestAddResourcesDialogCustomizer, self).setUp() self.logic = GuiApplicationLogic() self.gui = Gui(self.logic, AppMainWindow)
def setUp(self): super(TestTaskDetailsDialogCustomizer, self).setUp() self.logic = GuiApplicationLogic() self.gui = Gui(self.logic, AppMainWindow)
def setUp(self): super(TestConfigurationDialogCustomizer, self).setUp() self.logic = MagicMock() self.gui = Gui(self.logic, AppMainWindow) self.gui.main_window.show = MagicMock()
def setUp(self): super(TestTaskTableElem, self).setUp() self.gui = Gui(Mock(), AppMainWindow)