(self, any_kernel: Kernel)
| 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 |
nothing calls this directly
no test coverage detected