def test_mainframe(qtbot): main_window = MainFrame() main_window.show() qtbot.addWidget(main_window) assert main_window.isVisible()