Skip to content

Commit 3ac289a

Browse files
authored
fix: write config on one line
1 parent 9ebdb53 commit 3ac289a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/test_execute.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,8 @@ def test_continue_linenos_conf_option(doctree):
215215
3 + 3
216216
217217
"""
218-
219-
tree = doctree(
220-
source,
221-
config="jupyter_sphinx_linenos = True\n" "jupyter_sphinx_continue_linenos = True",
222-
)
218+
config = ["jupyter_sphinx_linenos = True", "jupyter_sphinx_continue_linenos = True"]
219+
tree = doctree(source, config="\n".join(config))
223220

224221
cell0, cell1 = tree.findall(JupyterCellNode)
225222
(cellinput0, celloutput0) = cell0.children
@@ -246,10 +243,8 @@ def test_continue_linenos_conf_option(doctree):
246243
3 + 3
247244
248245
"""
249-
tree = doctree(
250-
source,
251-
config="jupyter_sphinx_linenos = True\n" "jupyter_sphinx_continue_linenos = True",
252-
)
246+
config = ["jupyter_sphinx_linenos = True", "jupyter_sphinx_continue_linenos = True"]
247+
tree = doctree(source, config="\n".join(config))
253248
cell0, cell1 = tree.findall(JupyterCellNode)
254249
(cellinput0, celloutput0) = cell0.children
255250
(cellinput1, celloutput1) = cell1.children

0 commit comments

Comments
 (0)