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

Method test_len

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

Source from the content-addressed store, hash-verified

134 """Test iteration and len."""
135
136 async def test_len(self, k: Kernel) -> None:
137 await k.run(
138 [
139 cmd(cell_id="a", code="x = 1"),
140 cmd(cell_id="b", code="y = 2"),
141 ]
142 )
143 with _ctx(k) as ctx:
144 assert len(ctx.cells) == 2
145
146 async def test_iteration_yields_cells(self, k: Kernel) -> None:
147 await k.run(

Callers

nothing calls this directly

Calls 3

cmdFunction · 0.85
_ctxFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected