From d7534ccd96995437af496dd2f7b121adba5facdc Mon Sep 17 00:00:00 2001 From: IgorTatarnikov Date: Mon, 8 Jan 2024 15:06:33 +0000 Subject: [PATCH] Made collapsible=True explicit --- tests/tests/test_qtpy/test_collapsible_widget.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/tests/test_qtpy/test_collapsible_widget.py b/tests/tests/test_qtpy/test_collapsible_widget.py index 7c2e1af..34e412b 100644 --- a/tests/tests/test_qtpy/test_collapsible_widget.py +++ b/tests/tests/test_qtpy/test_collapsible_widget.py @@ -115,7 +115,7 @@ def test_collapsible_widget_container_add_collapsible_widget( generic_widget.layout().addWidget(QPushButton("test")) collapsible_widget_container.add_widget( - generic_widget, widget_title=WIDGET_TITLE + generic_widget, collapsible=True, widget_title=WIDGET_TITLE ) # Check that the widget was added and is a CollapsibleWidget @@ -203,7 +203,7 @@ def test_collapsible_widget_container_add_remove_diff_widgets( other_widget = QLabel("test") collapsible_widget_container.add_widget( - generic_widget, widget_title=WIDGET_TITLE + generic_widget, collapsible=True, widget_title=WIDGET_TITLE ) collapsible_widget_container.add_widget(other_widget, collapsible=False) @@ -258,7 +258,9 @@ def test_collapsible_widget_container_update_drawers( collapsible_widget_container.layout().itemAt(i).widget() ) elif len(collapsible_widgets) < num_collapsible_widgets: - collapsible_widget_container.add_widget(QLabel("test")) + collapsible_widget_container.add_widget( + QLabel("test"), collapsible=True + ) collapsible_widgets.append( collapsible_widget_container.layout().itemAt(i).widget() )