[kimi] test: add comprehensive tests for spark modules (#659) #695

Merged
kimi merged 1 commits from kimi/issue-659 into main 2026-03-21 13:32:54 +00:00

1 Commits

Author SHA1 Message Date
kimi
3f64e5c2bd test: add comprehensive tests for spark advisor, eidos, and memory modules (#659)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Adds dedicated test files for the three spark modules that had minimal
test coverage:

- test_advisor.py: 30 tests covering all advisory helpers
  (_check_failure_patterns, _check_agent_performance, _check_bid_patterns,
  _check_prediction_accuracy, _check_system_activity) and generate_advisories
  integration tests.

- test_eidos.py: 30 tests covering predict_task_outcome (baseline, history,
  edge cases), evaluate_prediction, _compute_accuracy components,
  get_predictions filters, and get_accuracy_stats.

- test_memory.py: 35 tests covering score_importance (all event types,
  boosts), record_event (auto/explicit importance, invalid JSON),
  get_events (all filters, ordering), store_memory, get_memories,
  count_events, count_memories, and _get_conn schema verification.

Fixes #659

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 09:31:23 -04:00