Alexander Whitestone
|
03edc14eaa
|
test: add unit tests for spark/engine.py
Tests / lint (pull_request) Failing after 34s
Tests / test (pull_request) Has been skipped
Covers the public API and internal helpers not previously tested
under tox -e unit (with @pytest.mark.unit):
- get_memories / get_predictions query methods
- get_spark_engine singleton and reset_spark_engine lifecycle
- Module-level __getattr__ (lazy spark_engine access + AttributeError)
- on_task_posted without candidate_agents (no EIDOS prediction)
- on_task_completed with winning_bid parameter
- Disabled-engine guards for all mutating methods
- _maybe_consolidate early-return paths (<5 events, <3 outcomes,
neutral success rate 0.3–0.8)
Fixes #1343
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 22:51:35 -04:00 |
|