Tests for Debate Protocol (H.3.3).
Tests cover:
- DebateOrchestrator class
- Disagreement detection
- Debate context preparation
- Debate round execution
- Consensus calculator integration
File: test_debate_protocol.py
Classes
TestDebateConfig
Tests for DebateConfig dataclass.
TestJudgeEvaluation
Tests for JudgeEvaluation dataclass.
TestDisagreement
Tests for Disagreement dataclass.
TestDebateOrchestrator
Tests for DebateOrchestrator class.
TestAgreementCalculation
Tests for agreement calculation.
TestDisagreementDetection
Tests for disagreement detection (H.3.3.2).
TestDebateContextPreparation
Tests for debate context preparation (H.3.3.3).
TestDebateRoundExecution
Tests for debate round execution (H.3.3.4).
TestOrchestrateDebate
Tests for full debate orchestration.
TestDebateSummary
Tests for debate summary generation.
Functions
test_default_config()
Test default configuration values.
test_custom_config()
Test custom configuration.
test_persona_weights()
Test default persona weights sum to 1.0.
test_create_evaluation()
Test creating a judge evaluation.
test_evaluation_timestamp()
Test evaluation has timestamp.
test_verdict_disagreement()
Test creating verdict-level disagreement.
test_dimension_disagreement()
Test creating dimension-level disagreement.
setUp()
Set up test fixtures.
test_create_orchestrator()
Test creating debate orchestrator.
test_create_with_custom_config()
Test creating orchestrator with custom config.
test_create_default_orchestrator()
Test convenience function.
setUp()
Set up test fixtures.
test_perfect_agreement()
Test 100% agreement when all verdicts match.
test_no_agreement()
Test low agreement when all verdicts differ.
test_partial_agreement()
Test partial agreement.
Usage
python test_debate_protocol.py