We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edcfa43 commit 8f946faCopy full SHA for 8f946fa
ipywidgets/widgets/tests/test_widget.py
@@ -43,3 +43,13 @@ def test_widget_view():
43
assert 'application/vnd.jupyter.widget-view+json' in mime_bundle, "widget should have have a view"
44
assert cap.stdout == '', repr(cap.stdout)
45
assert cap.stderr == '', repr(cap.stderr)
46
+
47
48
+def test_close_all():
49
+ # create a couple of widgets
50
+ widgets = [Button() for i in range(10)]
51
52
+ # close all the widgets
53
+ Widget.close_all()
54
55
+ assert len(Widget._active_widgets) == 0, "active widgets should be cleared"
0 commit comments