Skip to content

Add unit tests for AIService, SignalService, and CramerService #293

@TheodorStorm

Description

@TheodorStorm

Summary

The runner.py refactoring (Issue #58) extracted several services that currently lack dedicated unit tests:

  • AIService - threshold adjustment, veto cooldown logic
  • SignalService - signal history storage
  • CramerService - largest service at ~800 lines

Context

From PR #292 review (bot review, 2025-12-23)

The existing integration tests in test_trading_daemon.py cover end-to-end flows, but dedicated unit tests would improve coverage and make it easier to test edge cases.

Priority

Low - existing integration tests provide coverage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions