Skip to content

[QA] Add comprehensive unit tests for Flare AI Kit core modules #108

@dineshpinto

Description

@dineshpinto
  • Description
    • Expand and fix unit tests across src/flare_ai_kit/ (ingestion, consensus, ecosystem, RAG, etc.). Use pytest, unittest.mock (incl. AsyncMock) and pytest.monkeypatch to isolate externals (env vars, network/HTTP, agent calls, onchain). Tests must be fast, deterministic, and offline.
  • Scope
    • Touch tests only; if a source change is required (bug/surface for testability), comment first and keep minimal.
    • Avoid new deps; if truly needed, justify in a comment.
  • Acceptance Criteria
    • ≥ 80% overall line coverage (and for touched modules, where practical).
    • No real I/O (network/chain/filesystem/time) during tests; use fixtures/mocks.
    • Green CI on the full test matrix.
  • Key Files Involved (Proposed)
    • flare_ai_kit/src/*.py
    • flare_ai_kit/tests/*.py

Metadata

Metadata

Assignees

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