File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -165,15 +165,10 @@ def test_continue_linenos_conf_option(doctree):
165
165
166
166
3 + 3
167
167
168
- .. jupyter-execute::
169
- :linenos:
170
-
171
- 4 + 4
172
-
173
168
'''
174
169
continue_linenos_config = "jupyter_sphinx_continue_linenos = True"
175
170
tree = doctree (source , config = continue_linenos_config )
176
- cell0 , cell1 , cell2 = tree .traverse (JupyterCellNode )
171
+ cell0 , cell1 = tree .traverse (JupyterCellNode )
177
172
assert cell0 .children [0 ].attributes ['linenos' ]
178
173
assert cell0 .children [0 ].attributes ['highlight_args' ]['linenostart' ] == 1
179
174
assert cell0 .children [0 ].rawsource .strip () == "2 + 2"
@@ -184,6 +179,7 @@ def test_continue_linenos_conf_option(doctree):
184
179
assert cell1 .children [0 ].rawsource .strip () == "3 + 3"
185
180
assert cell1 .children [1 ].rawsource .strip () == "6"
186
181
182
+
187
183
def test_execution_environment_carries_over (doctree ):
188
184
source = '''
189
185
.. jupyter-execute::
You can’t perform that action at this time.
0 commit comments