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

Function test_cli_edit_token

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

Source from the content-addressed store, hash-verified

514
515
516def test_cli_edit_token() -> None:
517 # smoke test: makes sure CLI starts and has basic things we expect
518 # helpful for catching issues related to
519 port = _get_port()
520 p = subprocess.Popen(
521 [
522 "marimo",
523 "edit",
524 "-p",
525 str(port),
526 "--headless",
527 "--token-password",
528 "secret",
529 "--skip-update-check",
530 ]
531 )
532 contents = _try_fetch(port, "localhost", "secret")
533 _check_contents(p, b'"mode": "home"', contents)
534 _check_contents(
535 p,
536 f'"version": "{get_version()}"'.encode(),
537 contents,
538 )
539 _check_contents(p, b'"serverToken": ', contents)
540
541
542def test_cli_edit_token_password_file_stdin() -> 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…