Skip to content

Commit

Permalink
Add initial assert for the Widget.close_all test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Mar 26, 2021
1 parent 8f946fa commit 3f8ae83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipywidgets/widgets/tests/test_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def test_close_all():
# create a couple of widgets
widgets = [Button() for i in range(10)]

assert len(Widget._active_widgets) > 0, "expect active widgets"

# close all the widgets
Widget.close_all()

Expand Down

0 comments on commit 3f8ae83

Please sign in to comment.