補齊 OpenClaw 市場策略 action 相容
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user