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

Method test_export_session

tests/_cli/test_cli_export.py:1434–1442  ·  view source on GitHub ↗
(temp_marimo_file: str)

Source from the content-addressed store, hash-verified

1432class TestExportSession:
1433 @staticmethod
1434 def test_export_session(temp_marimo_file: str) -> None:
1435 p = _run_export("session", temp_marimo_file)
1436 _assert_success(p)
1437
1438 session_file = get_session_cache_file(Path(temp_marimo_file))
1439 assert session_file.exists()
1440 data = json.loads(session_file.read_text(encoding="utf-8"))
1441 assert data["version"] == "1"
1442 assert len(data["cells"]) > 0
1443
1444 @staticmethod
1445 def test_export_session_with_args(temp_marimo_file: str) -> None:

Callers

nothing calls this directly

Calls 5

get_session_cache_fileFunction · 0.90
_run_exportFunction · 0.85
_assert_successFunction · 0.85
existsMethod · 0.45
read_textMethod · 0.45

Tested by

no test coverage detected