def browser(qtbot): """Set up WebBrowser.""" WebBrowser.CONF_SECTION = '' widget = WebBrowser(None) widget.show() yield widget widget.webview.stop() widget.close()
def setup_browser(qtbot): """Set up WebBrowser.""" widget = WebBrowser() qtbot.addWidget(widget) return widget