MCPcopy Index your code
hub / github.com/marimo-team/marimo / test_cache_module_miss

Method test_cache_module_miss

tests/_save/test_cache.py:606–630  ·  view source on GitHub ↗
(self, any_kernel: Kernel)

Source from the content-addressed store, hash-verified

604 assert k.globals["mo"].__version__ == marimo.__version__
605
606 async def test_cache_module_miss(self, any_kernel: Kernel) -> None:
607 k = any_kernel
608 await k.run(
609 [
610 ExecuteCellCommand(
611 cell_id="0",
612 code=textwrap.dedent(
613 """
614 from marimo._save.save import persistent_cache
615 from tests._save.loaders.mocks import MockLoader
616
617 with persistent_cache(
618 name="one", _loader=MockLoader()
619 ) as cache:
620 import marimo as mo
621 """
622 ),
623 ),
624 ]
625 )
626 # No warning messages.
627 assert k.errors == {}
628 assert not k.stdout.messages, k.stdout
629 assert not k.stderr.messages, k.stderr
630 assert k.globals["mo"].__version__ == marimo.__version__
631
632 async def test_cache_function_hit(self, any_kernel: Kernel) -> None:
633 k = any_kernel

Callers

nothing calls this directly

Calls 2

ExecuteCellCommandClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected