Exemple #1
0
def pytest_runtest_setup(item):
    """
    Display test method name in active window title bar
    """
    global _widget
    module, line, method = item.location
    module = module.replace('.py', '.')
    title = module + method
    widgets = QApplication.instance().topLevelWidgets()
    for w in widgets:
        w.setWindowTitle(title)
    logging.info("------------------- %s -------------------", title)
Exemple #2
0
def pytest_runtest_setup(item):
    """
    Display test method name in active window title bar
    """
    global _widget
    module, line, method = item.location
    module = module.replace('.py', '.')
    title = module + method
    widgets = QApplication.instance().topLevelWidgets()
    for w in widgets:
        w.setWindowTitle(title)
    logging.info("------------------- %s -------------------", title)
Exemple #3
0
def pytest_runtest_setup(item):
    """
    Display test method name in active window title bar
    ;param item: test item to run
    """
    from pyqode.qt.QtWidgets import QApplication
    global EDITOR, APP
    if APP is None:
        APP = QApplication(sys.argv)
    module, line, method = item.location
    module = module.replace('.py', '.')
    title = module + method
    widgets = QApplication.instance().topLevelWidgets()
    for w in widgets:
        w.setWindowTitle(title)
    logging.info("------------------- %s -------------------", title)
Exemple #4
0
def pytest_runtest_setup(item):
    """
    Display test method name in active window title bar
    ;param item: test item to run
    """
    from pyqode.qt.QtWidgets import QApplication
    global EDITOR, APP
    if APP is None:
        APP = QApplication(sys.argv)
    module, line, method = item.location
    module = module.replace('.py', '.')
    title = module + method
    widgets = QApplication.instance().topLevelWidgets()
    for w in widgets:
        w.setWindowTitle(title)
    logging.info("------------------- %s -------------------", title)