Skip to content

Secure, Fast, and Extensible Sandbox runtime for AI agents.

test(cli): assert config set succeeds for typed keys

Maohao7d7e44311322
diff --git a/cli/tests/test_commands.py b/cli/tests/test_commands.py
index 428f6d4b8..47aa67af2 100644
--- a/cli/tests/test_commands.py
+++ b/cli/tests/test_commands.py
@@ -314,8 +314,11 @@ class TestConfigSet:
cfg_path = tmp_path / "config.toml"
cfg_path.write_text("[connection]\n")
- runner.invoke(cli, ["--config", str(cfg_path), "config", "set", key, value])
+ result = runner.invoke(
+ cli, ["--config", str(cfg_path), "config", "set", key, value]
+ )
+ assert result.exit_code == 0
assert resolve_config(config_path=cfg_path)[resolved_key] == expected
def test_set_reports_invalid_existing_toml(