def test_storeConfig_2(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) app.app.config['keypadW'] = {} suc = app.storeConfig() assert suc
def test_initConfig_3(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) app.app.config['keypadW'] = {'winPosY': 10000} suc = app.initConfig() assert suc
def test_storeConfig_1(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) if 'keypadW' in app.app.config: del app.app.config['keypadW'] suc = app.storeConfig() assert suc
def test_loadFinished_1(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) app.loadFinished()
def test_closeEvent_1(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) with mock.patch.object(MWidget, 'closeEvent', return_value=True): app.closeEvent(QCloseEvent())
def test_initConfig_1(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) suc = app.initConfig() assert suc
def test_showUrl_2(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) app.host = 'localhost' app.showUrl()
def test_showUrl_1(qtbot): app = KeypadWindow(app=Test()) qtbot.addWidget(app) app.showUrl()