def test_save_file_dialog(): utils.init_qtapp() timer = QtCore.QTimer() timer.singleShot(100, lambda: QtGui.QApplication.quit()) filename = dialogs.save_file_dialog() assert filename is None
def test_event_loop(): utils.init_qtapp() timer = QtCore.QTimer() timer.singleShot(10, QtGui.QApplication.quit) utils.start_qtapp()
def test_open_file_dialog(): utils.init_qtapp() timer = QtCore.QTimer() timer.singleShot(10, QtGui.QApplication.quit) filename = dialogs.open_file_dialog() assert filename is None
def test_open_file_dialog(): QApp = utils.init_qtapp() timer = QtCore.QTimer() timer.singleShot(100, lambda: QApp.quit()) filename = dialogs.open_file_dialog() assert filename is None