Skip to content

Commit

Permalink
tests: revert cli debug (#3153)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick authored Dec 13, 2024
1 parent 8defa6d commit 298b386
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/_cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def test_cli_edit_none() -> None:
# smoke test: makes sure CLI starts and has basic things we expect
# helpful for catching issues related to
port = _get_port()
with subprocess.Popen(
p = subprocess.Popen(
[
"marimo",
"edit",
Expand All @@ -209,14 +209,13 @@ def test_cli_edit_none() -> None:
"--no-token",
"--skip-update-check",
]
):
contents = _try_fetch(port)
assert contents is not None
assert b"marimo-mode data-mode='home'" in contents
assert (
f"marimo-version data-version='{__version__}'".encode() in contents
)
assert b"marimo-server-token" in contents
)
contents = _try_fetch(port)
_check_contents(p, b"marimo-mode data-mode='home'", contents)
_check_contents(
p, f"marimo-version data-version='{__version__}'".encode(), contents
)
_check_contents(p, b"marimo-server-token", contents)


def test_cli_edit_token() -> None:
Expand Down

0 comments on commit 298b386

Please sign in to comment.