(tmp_path: Path)
| 815 | reason="update check won't work without access to pypi, or on Windows", |
| 816 | ) |
| 817 | def 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…