Skip to content

Commit ab69b2e

Browse files
committed
Add tests for the positional children argument for selection containers.
1 parent f5945f6 commit ab69b2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/ipywidgets/ipywidgets/widgets/tests/test_selectioncontainer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from traitlets import TraitError
77

8-
from ipywidgets.widgets import Accordion, HTML
8+
from ipywidgets.widgets import Accordion, Tab, Stack, HTML
99

1010

1111
class TestAccordion(TestCase):
@@ -27,6 +27,11 @@ def test_selected_index_out_of_bounds(self):
2727
with self.assertRaises(TraitError):
2828
Accordion(self.children, selected_index=-1)
2929

30+
def test_children_position_argument(self):
31+
Accordion(self.children)
32+
Tab(self.children)
33+
Stack(self.children)
34+
3035

3136
def test_titles(self):
3237
accordion = Accordion(self.children, selected_index=None)

0 commit comments

Comments
 (0)