@acedatacloud/skills 2026.720.2 → 2026.720.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acedatacloud/skills",
|
|
3
|
-
"version": "2026.720.
|
|
3
|
+
"version": "2026.720.3",
|
|
4
4
|
"description": "Agent Skills for AceDataCloud AI services — music, image, video generation, LLM chat, web search. Compatible with Claude Code, GitHub Copilot, Gemini CLI, OpenAI Codex, and 30+ AI coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-skills",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import importlib.util
|
|
4
|
+
import sys
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from unittest.mock import patch
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
SCRIPT = Path(__file__).parents[1] / "scripts" / "personal_wechat.py"
|
|
10
|
+
SPEC = importlib.util.spec_from_file_location("personal_wechat_skill_script", SCRIPT)
|
|
11
|
+
assert SPEC and SPEC.loader
|
|
12
|
+
sys.path.insert(0, str(SCRIPT.parent))
|
|
13
|
+
personal_wechat = importlib.util.module_from_spec(SPEC)
|
|
14
|
+
SPEC.loader.exec_module(personal_wechat)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def test_wait_task_returns_successful_result() -> None:
|
|
18
|
+
with patch.object(
|
|
19
|
+
personal_wechat,
|
|
20
|
+
"request",
|
|
21
|
+
return_value={"status": "succeeded", "result": {"sent": True}},
|
|
22
|
+
):
|
|
23
|
+
result = personal_wechat.wait_task("task-1", timeout=0.1)
|
|
24
|
+
|
|
25
|
+
assert result == {"sent": True}
|