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

Method test_keys

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

Source from the content-addressed store, hash-verified

156 assert [c.code for c in cells] == ["x = 1", "y = 2"]
157
158 async def test_keys(self, k: Kernel) -> None:
159 await k.run(
160 [
161 cmd(cell_id="a", code="x = 1"),
162 cmd(cell_id="b", code="y = 2"),
163 ]
164 )
165 with _ctx(k) as ctx:
166 assert ctx.cells.keys() == ["a", "b"]
167
168 async def test_values(self, k: Kernel) -> None:
169 await k.run(

Callers

nothing calls this directly

Calls 4

cmdFunction · 0.85
_ctxFunction · 0.70
runMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected