def test_directory_dialog(qtbot): #assert qt_api.QApplication.instance() is not None widget = about.About() widget.show() qtbot.addWidget(widget)