Skip to content

Commit 38649ff

Browse files
committed
updated test removing cell2
1 parent a6510c9 commit 38649ff

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_execute.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,10 @@ def test_continue_linenos_conf_option(doctree):
165165
166166
3 + 3
167167
168-
.. jupyter-execute::
169-
:linenos:
170-
171-
4 + 4
172-
173168
'''
174169
continue_linenos_config = "jupyter_sphinx_continue_linenos = True"
175170
tree = doctree(source, config=continue_linenos_config)
176-
cell0, cell1, cell2 = tree.traverse(JupyterCellNode)
171+
cell0, cell1 = tree.traverse(JupyterCellNode)
177172
assert cell0.children[0].attributes['linenos']
178173
assert cell0.children[0].attributes['highlight_args']['linenostart'] == 1
179174
assert cell0.children[0].rawsource.strip() == "2 + 2"
@@ -184,6 +179,7 @@ def test_continue_linenos_conf_option(doctree):
184179
assert cell1.children[0].rawsource.strip() == "3 + 3"
185180
assert cell1.children[1].rawsource.strip() == "6"
186181

182+
187183
def test_execution_environment_carries_over(doctree):
188184
source = '''
189185
.. jupyter-execute::

0 commit comments

Comments
 (0)