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

Function test_cli_edit_none

tests/_cli/test_cli.py:491–513  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

489
490
491def test_cli_edit_none() -> None:
492 # smoke test: makes sure CLI starts and has basic things we expect
493 # helpful for catching issues related to
494 port = _get_port()
495 p = subprocess.Popen(
496 [
497 "marimo",
498 "edit",
499 "-p",
500 str(port),
501 "--headless",
502 "--no-token",
503 "--skip-update-check",
504 ]
505 )
506 contents = _try_fetch(port)
507 _check_contents(p, b'"mode": "home"', contents)
508 _check_contents(
509 p,
510 f'"version": "{get_version()}"'.encode(),
511 contents,
512 )
513 _check_contents(p, b'"serverToken": ', contents)
514
515
516def test_cli_edit_token() -> None:

Callers

nothing calls this directly

Calls 5

get_versionFunction · 0.90
_get_portFunction · 0.85
_try_fetchFunction · 0.85
_check_contentsFunction · 0.85
encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…