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 21, 2024
1 parent 6dc7127 commit 61d85e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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)

sut.show()
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)
betty_qtbot.mouse_click(sut._serve_button)
betty_qtbot.assert_window(ServeProjectWindow)


Expand Down

0 comments on commit 61d85e5

Please sign in to comment.