mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-08-03 00:38:28 +02:00
fix(bec widgets): always call cleanup of child widgets on cleanup
This commit is contained in:
@@ -31,13 +31,6 @@ def compact_popup(qtbot):
|
||||
yield widget
|
||||
|
||||
|
||||
def test_widget_closing(qtbot, compact_popup):
|
||||
with mock.patch.object(compact_popup.contained, "close") as close_method:
|
||||
compact_popup.close()
|
||||
qtbot.waitUntil(lambda: not compact_popup.isVisible(), timeout=1000)
|
||||
close_method.assert_called_once()
|
||||
|
||||
|
||||
def test_size_policy(compact_popup):
|
||||
csp = compact_popup.sizePolicy()
|
||||
assert csp.horizontalPolicy() == QSizePolicy.Expanding
|
||||
|
||||
Reference in New Issue
Block a user