def test_changeRoiFps(self, qtbot): ccWidget = CameraControlWidget() ccWidget.show() qtbot.addWidget(ccWidget) cc = CameraController(ccWidget) cc.setupCamera("GaussianCamera") truthRoiFps = 70 cc.cameraControlWidget.roiFpsSpinBox.setValue(truthRoiFps) assert cc.currentRoiFps() == truthRoiFps
def test_currentRoiFps(self, qtbot): ccWidget = CameraControlWidget() ccWidget.show() qtbot.addWidget(ccWidget) cc = CameraController(ccWidget) cc.setupCamera("GaussianCamera") qtbot.mouseClick(ccWidget.startStopButton, Qt.LeftButton) #cc.startStopCamera(True) roiFps = cc.currentRoiFps() assert roiFps == 40