Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: exit with non-zero code when marimo-pair skill is missing (#9029)

Myles Scolnick2bb4d538c268
diff --git a/tests/_cli/test_cli_pair.py b/tests/_cli/test_cli_pair.py
index 6ab3aa3f42..442fed35ed 100644
--- a/tests/_cli/test_cli_pair.py
+++ b/tests/_cli/test_cli_pair.py
@@ -55,8 +55,8 @@ class TestPairPrompt:
cli_main,
["pair", "prompt", "--url", TEST_URL, flag],
)
- assert result.exit_code != 0, flag
- assert "not installed" in result.output, flag
+ assert result.exit_code == 0, flag
+ assert "could not be found" in result.output, flag
def test_prompt_skill_installed(self) -> None:
with patch.object(AgentConfig, "has_skill", return_value=True):
@@ -139,8 +139,8 @@ class TestPairPromptWithToken:
],
input="secret\n",
)
- assert result.exit_code != 0
- assert "not installed" in result.output
+ assert result.exit_code == 0
+ assert "could not be found" in result.output
def test_without_token_no_token_hint(self) -> None:
result = _runner.invoke(