()
| 514 | |
| 515 | |
| 516 | def 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 | |
| 542 | def test_cli_edit_token_password_file_stdin() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…