MCPcopy
hub / github.com/marimo-team/marimo / test_values

Method test_values

tests/_code_mode/test_cells_view.py:168–178  ·  view source on GitHub ↗
(self, k: Kernel)

Source from the content-addressed store, hash-verified

166 assert ctx.cells.keys() == ["a", "b"]
167
168 async def test_values(self, k: Kernel) -> None:
169 await k.run(
170 [
171 cmd(cell_id="a", code="x = 1"),
172 cmd(cell_id="b", code="y = 2"),
173 ]
174 )
175 with _ctx(k) as ctx:
176 vals = ctx.cells.values()
177 assert [v.id for v in vals] == ["a", "b"]
178 assert [v.code for v in vals] == ["x = 1", "y = 2"]
179
180 async def test_items(self, k: Kernel) -> None:
181 await k.run(

Callers

nothing calls this directly

Calls 4

cmdFunction · 0.85
_ctxFunction · 0.70
runMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected