Exemplo n.º 1
0
def qapp():
    """
    fixture that instantiates the QApplication instance that will be used by
    the tests.
    """
    app = QApplicationMessaging.instance()
    if app is None:
        app = QApplicationMessaging([])
        yield app
        app.exit()
    else:
        yield app # pragma: no cover
Exemplo n.º 2
0
def qapp():
    """
    fixture that instantiates the QApplication instance that will be used by
    the tests.
    """
    app = QApplicationMessaging.instance()
    if app is None:
        app = QApplicationMessaging([])
        yield app
        app.exit()
    else:
        yield app # pragma: no cover