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

Function test_cli_edit_update_check

tests/_cli/test_cli.py:817–831  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

815 reason="update check won't work without access to pypi, or on Windows",
816)
817def test_cli_edit_update_check(tmp_path: Path) -> None:
818 port = _get_port()
819 env = {**os.environ, "XDG_STATE_HOME": str(tmp_path)}
820 # pop off MARIMO_SKIP_UPDATE_CHECK
821 env.pop("MARIMO_SKIP_UPDATE_CHECK", None)
822 p = subprocess.Popen(
823 ["marimo", "edit", "-p", str(port), "--headless", "--no-token"],
824 env=env,
825 )
826 contents = _try_fetch(port)
827 _check_contents(p, b'"mode": "home"', contents)
828
829 state_contents = _read_toml(tmp_path / "marimo" / "state.toml")
830 assert state_contents is not None
831 assert state_contents.get("last_checked_at") is not None
832
833
834@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 5

_get_portFunction · 0.85
_try_fetchFunction · 0.85
_check_contentsFunction · 0.85
_read_tomlFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…