()
| 489 | |
| 490 | |
| 491 | def 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 | |
| 516 | def test_cli_edit_token() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…