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

Function test_cli_edit_directory

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

Source from the content-addressed store, hash-verified

702
703
704def test_cli_edit_directory() -> None:
705 d = tempfile.TemporaryDirectory()
706 port = _get_port()
707 p = subprocess.Popen(
708 [
709 "marimo",
710 "edit",
711 d.name,
712 "-p",
713 str(port),
714 "--headless",
715 "--no-token",
716 "--skip-update-check",
717 ]
718 )
719 contents = _try_fetch(port)
720 _check_contents(p, b'"mode": "home"', contents)
721 _check_contents(
722 p,
723 f'"version": "{get_version()}"'.encode(),
724 contents,
725 )
726 _check_contents(p, b'"serverToken": ', contents)
727
728
729def test_cli_edit_new_file() -> 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…