Skip to content

Commit

Permalink
Made collapsible=True explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jan 8, 2024
1 parent 2a03009 commit d7534cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/tests/test_qtpy/test_collapsible_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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()
)
Expand Down

0 comments on commit d7534cc

Please sign in to comment.