MCPcopy
hub / github.com/jupytext/jupytext / test_execute

Function test_execute

tests/integration/cli/test_execute.py:76–90  ·  view source on GitHub ↗
(tmpdir, caplog, capsys)

Source from the content-addressed store, hash-verified

74@pytest.mark.requires_nbconvert
75@pytest.mark.skip_on_windows
76def test_execute(tmpdir, caplog, capsys):
77 tmp_ipynb = str(tmpdir.join("notebook.ipynb"))
78 tmp_py = str(tmpdir.join("notebook.py"))
79
80 with open(tmp_py, "w") as fp:
81 fp.write(
82 """1 + 2
83"""
84 )
85
86 jupytext(args=[tmp_py, "--to", "ipynb", "--execute"])
87
88 nb = read(tmp_ipynb)
89 assert len(nb.cells) == 1
90 assert nb.cells[0].outputs[0]["data"] == {"text/plain": "3"}
91
92
93@pytest.mark.requires_user_kernel_python3

Callers

nothing calls this directly

Calls 3

readFunction · 0.90
jupytextFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…