MCPcopy Create free account
hub / github.com/datapane/datapane / test_add_code

Function test_add_code

python-client/tests/client/views/test_builtins.py:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_add_code():
19 b = dp.builtins.add_code(md_block, "print(1)")
20 assert isinstance(b, dp.Select)
21 assert glom(b, ("blocks", ["_tag"])) == ["Text", "Code"]
22 assert "print(1)" in element_to_str(b)
23
24
25def test_build_md_view():

Callers

nothing calls this directly

Calls 1

element_to_strFunction · 0.85

Tested by

no test coverage detected