Skip to main content

Test script for MoE Orchestration Engine.

Tests the full classification pipeline:

  1. Consensus calculation from analyst votes
  2. Orchestrator coordination of analysts and judges
  3. Parallel execution and error handling
  4. Batch processing

File: test_orchestrator.py

Functions

create_test_documents()

Create sample documents for testing.

test_consensus_calculator()

Test consensus calculation independently.

test_orchestrator_single()

Test orchestrator with single document.

test_orchestrator_batch()

Test orchestrator with batch processing.

test_orchestrator_edge_cases()

Test orchestrator edge cases and error handling.

test_full_pipeline()

Full integration test of the classification pipeline.

main()

Run all orchestrator tests.

progress_callback(current, total)

No description

Usage

python test_orchestrator.py