Skip to content

Commit

Permalink
Fix broken test coverage for serving a site directly after generating…
Browse files Browse the repository at this point in the history
… it through the Graphical User Interface
  • Loading branch information
bartfeenstra committed Feb 22, 2024
1 parent a1cfe44 commit f5e1cb4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions betty/tests/gui/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,9 @@ async def test_serve_button_should_open_serve_window(
sut = _GenerateWindow(app)
betty_qtbot.qtbot.addWidget(sut)

with betty_qtbot.qtbot.waitSignal(sut._thread.finished):
sut.show()
betty_qtbot.qtbot.mouseClick(sut._cancel_button, Qt.MouseButton.LeftButton)

betty_qtbot.qtbot.mouseClick(sut._serve_button, Qt.MouseButton.LeftButton)
sut.show()
betty_qtbot.qtbot.waitSignal(sut._thread.finished).wait()
betty_qtbot.mouse_click(sut._serve_button)
betty_qtbot.assert_window(ServeProjectWindow)


Expand Down

0 comments on commit f5e1cb4

Please sign in to comment.