[claude] Fix kimi_delegation unit tests — all 53 pass (#1260) #1313
Reference in New Issue
Block a user
Delete Branch "claude/issue-1260"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1260
Changes
httpxandsettingsto module-level imports inkimi_delegation.pysopatch("timmy.kimi_delegation.settings")andpatch("timmy.kimi_delegation.httpx")work correctly in testsimport asyncioinsideindex_kimi_artifact(already imported at module level)test_special_characters_removed—_slugifycollapses runs of separators, so result is"research-ai-ml"not"research-ai--ml"- Moved `httpx` and `settings` to module-level imports in kimi_delegation.py so `patch("timmy.kimi_delegation.settings/httpx")` works in tests - Removed redundant lazy `import asyncio` inside index_kimi_artifact - Fixed incorrect expected value in test_special_characters_removed (_slugify collapses runs of separators, so "research-ai-ml" not "research-ai--ml") - All 53 kimi_delegation tests now pass (previously 11 failed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>