File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -663,9 +663,11 @@ def test_input_cell(doctree):
663
663
"""
664
664
tree = doctree (source )
665
665
(cell ,) = tree .traverse (JupyterCellNode )
666
- (cellinput , _ ) = cell .children
666
+ (cellinput , empty ) = cell .children
667
+ assert cell .attributes ["hide_output" ] is True
667
668
assert cellinput .children [0 ].attributes ["linenos" ] is False
668
669
assert cellinput .children [0 ].rawsource .strip () == "2 + 2"
670
+ assert len (empty .children ) == 0
669
671
670
672
def test_input_cell_linenos (doctree ):
671
673
source = """
@@ -676,9 +678,11 @@ def test_input_cell_linenos(doctree):
676
678
"""
677
679
tree = doctree (source )
678
680
(cell ,) = tree .traverse (JupyterCellNode )
679
- (cellinput , _ ) = cell .children
681
+ (cellinput , empty ) = cell .children
682
+ assert cell .attributes ["hide_output" ] is True
680
683
assert cellinput .children [0 ].attributes ["linenos" ] is True
681
684
assert cellinput .children [0 ].rawsource .strip () == "2 + 2"
685
+ assert len (empty .children ) == 0
682
686
683
687
def test_output_cell (doctree ):
684
688
source = """
You can’t perform that action at this time.
0 commit comments