From de9f6813f01e1f5a1d8f060319908ab671157ebc Mon Sep 17 00:00:00 2001 From: tmichela Date: Wed, 22 Jan 2025 10:51:52 +0100 Subject: [PATCH] fix gui test --- tests/test_gui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_gui.py b/tests/test_gui.py index b04a2e22..ed23e65c 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -1056,6 +1056,12 @@ def apply_tag_filter(tags): def test_filter_proxy(mock_db_with_data_2, qtbot): db_dir, db = mock_db_with_data_2 + # Create main window + win = MainWindow(db_dir, False) + qtbot.addWidget(win) + + table_view = win.table_view + proxy_model = table_view.model() source_model = win.table initial_rows = proxy_model.rowCount()