Пример #1
0
    def setUp(self):
        GuiTest.setUp(self)
        self.mockController = Controller()
        self.mockController.systemPowerOn = MagicMock(return_value=1)
        self.mockController.systemPowerOff = MagicMock(return_value=1)

        self.main = MainWindow(self.mockController)
Пример #2
0
    def setUp(self):
        GuiTest.setUp(self)
        self.mockController = Controller()
        self.mockController.move = MagicMock(return_value=1)
        self.mockController.zoom = MagicMock(return_value=1)
        self.mockController.focus = MagicMock(return_value=1)

        self.mockMainWindow = MainWindow(self.mockController)

        cam = Device("Test Camera")
        self.mockController.addDevice(cam)
        cam.recallPreset = lambda x: {}
Пример #3
0
    def setUp(self):
        GuiTest.setUp(self)
        self.mockController = Controller()

        self.main = Device("Main")
        self.mockController.addDevice(self.main)
        self.main.sendInputToOutput = MagicMock(return_value=1)

        self.preview = Device("Preview")
        self.mockController.addDevice(self.preview)
        self.preview.sendInputToOutput = MagicMock(return_value=1)

        self.extras = Device("Extras")
        self.mockController.addDevice(self.extras)
        self.extras.sendInputToOutput = MagicMock(return_value=1)

        fakeMainWindow = object()
        self.vs = VideoSwitcher(self.mockController, fakeMainWindow)
Пример #4
0
 def setUp(self):
     GuiTest.setUp(self)
Пример #5
0
 def setUp(self):
     GuiTest.setUp(self)
     self.mockController = Controller()
     self.mockBlindsDevice = Device("Test")
     self.mockController.addDevice(self.mockBlindsDevice)
     self.mockMainWindow = MainWindow(self.mockController)
Пример #6
0
    def setUp(self):
        GuiTest.setUp(self)
        self.mockController = Controller()

        conv = Device("Test Scan Converter")
        self.mockController.addDevice(conv)