mirror of
https://github.com/HKUDS/CLI-Anything.git
synced 2026-07-03 13:02:27 +08:00
Gate SiYuan live subprocess e2e tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user