Skip to content

Commit

Permalink
Register Qt window created in backend test for cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Sep 16, 2024
1 parent c3db819 commit 687ffde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ def foo(run):
# Make sure that the GUI evaluates the context file correctly (which it does
# upon opening a database directory).
win = MainWindow(db_dir, False)
qtbot.addWidget(win)

def test_initialize_and_start_backend(tmp_path, bound_port, request):
db_dir = tmp_path / "foo"
Expand Down

0 comments on commit 687ffde

Please sign in to comment.