補齊 OpenClaw 市場策略 action 相容

This commit is contained in:
OoO
2026-05-31 12:26:17 +08:00
parent 998e0da9b4
commit 291cdf019f
6 changed files with 27 additions and 7 deletions

View File

@@ -64,17 +64,21 @@ def test_execute_step_routes_price_adjustment_to_human_review(monkeypatch):
assert calls[0]["parameters"]["recommended_price"] == 1280
def test_execute_step_skips_legacy_openclaw_resource_strategy():
def test_execute_step_skips_legacy_openclaw_strategy_actions():
from services.elephant_alpha_autonomous_engine import ElephantAlphaAutonomousEngine
engine = ElephantAlphaAutonomousEngine()
result = asyncio.run(engine._execute_step({
"agent": "openclaw",
"action": "generate_resource_optimization_strategy",
}))
for action in {
"generate_market_strategy",
"generate_resource_optimization_strategy",
}:
result = asyncio.run(engine._execute_step({
"agent": "openclaw",
"action": action,
}))
assert result is None
assert result is None
def test_autoheal_derives_python_exception_from_traceback():