Gate SiYuan live subprocess e2e tests

This commit is contained in:
yuhao
2026-06-11 10:12:45 +00:00
parent 03ae2ea95c
commit 59e9f7bc2d
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# cli-anything-siyuan
A CLI harness for [SiYuan](https://github.com/siyuan-note/siyuan) (思源笔记) —
A CLI harness for [SiYuan](https://github.com/siyuan-note/siyuan) (思源笔记) —
interact with your knowledge base from the terminal.
## Prerequisites
@@ -89,7 +89,7 @@ Inside the REPL:
◆ cli-anything · Siyuan v1.0.0
◇ Install: npx skills add HKUDS/CLI-Anything --skill cli-anything-siyuan -g -y
◇ Global skill: ~/.agents/skills/cli-anything-siyuan/SKILL.md
Type help for commands, quit to exit
siyuan notebook list

View File

@@ -71,7 +71,7 @@ class TestCLISubprocess:
assert "Usage:" in result.stdout
print(f"\n --help: OK ({len(result.stdout)} chars)")
def test_version_json(self, tmp_dir: Path):
def test_version_json(self, client: SiYuanClient):
"""--json version returns valid JSON with version string."""
result = self._run(["--json", "version"])
assert result.returncode == 0
@@ -80,7 +80,7 @@ class TestCLISubprocess:
assert data["version"]
print(f"\n SiYuan version: {data['version']}")
def test_status_json(self, tmp_dir: Path):
def test_status_json(self, client: SiYuanClient):
"""--json status returns valid JSON with connection info."""
result = self._run(["--json", "status"])
assert result.returncode == 0