fix(test): make the suite green on CI

- Point the cookbook claude_code model assertion at qwen3.7-plus, the
  default commit 9404e600 set, so the pre-existing red stops blocking
- Satisfy pylint on the auto-fin tests: prefer implicit booleaness for
  the recorded Agent calls and drop an unused tmp_path fixture

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jinli.yl 2026-09-18 23:51:45 +08:00
parent 19ede6d6ac
commit 8f678c1f85
2 changed files with 4 additions and 4 deletions

View file

@ -373,7 +373,7 @@ async def test_research_skips_topics_without_news_and_honours_the_skip_flag(tmp_
response = await AutoFinResearchStep(app_context=app_context, agent_wrapper=agent)(context)
assert agent.calls == []
assert not agent.calls
assert context["auto_fin_notes"] == []
assert response.metadata["note_paths"] == []
assert not (tmp_path / "daily").exists()
@ -426,11 +426,11 @@ async def test_digest_skips_when_the_run_was_already_skipped(tmp_path: Path):
await AutoFinDigestStep(app_context=app_context, agent_wrapper=agent)(context)
assert agent.calls == []
assert not agent.calls
assert not (tmp_path / "daily").exists()
def test_normalize_hybrid_wikilinks_is_conservative(tmp_path: Path):
def test_normalize_hybrid_wikilinks_is_conservative():
body = (
"[[digest/wiki/gold.md]](digest/wiki/gold.md) "
"[[digest/wiki/gold.md|黄金]](<digest/wiki/gold.md>) "

View file

@ -86,7 +86,7 @@ def test_cookbook_enables_embedding_and_separate_agent_backends(monkeypatch):
assert components["agent_wrapper"]["default"]["backend"] == "agentscope"
assert components["agent_wrapper"]["claude_code"] == {
"backend": "claude_code",
"model": "qwen3.8-max",
"model": "qwen3.7-plus",
"api_key": "llm-api-key",
"base_url": "https://dashscope.aliyuncs.com/apps/anthropic",
"permission_mode": "bypassPermissions",