MCPcopy
hub / github.com/jupytext/jupytext / test_execute_r

Function test_execute_r

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

Source from the content-addressed store, hash-verified

156@pytest.mark.requires_ir_kernel
157@pytest.mark.skip_on_windows
158def test_execute_r(tmpdir, caplog, capsys): # pragma: no cover
159 tmp_ipynb = str(tmpdir.join("notebook.ipynb"))
160 tmp_md = str(tmpdir.join("notebook.md"))
161
162 with open(tmp_md, "w") as fp:
163 fp.write(
164 """```r
1651 + 2 + 3
166```
167"""
168 )
169
170 jupytext(args=[tmp_md, "--to", "ipynb", "--execute"])
171
172 nb = read(tmp_ipynb)
173 assert len(nb.cells) == 1
174 assert nb.cells[0].outputs[0]["data"]["text/markdown"] == "6"
175
176
177@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…