MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_votes_weights_length_mismatch

Function test_votes_weights_length_mismatch

tests/test_ensemble.py:80–86  ·  view source on GitHub ↗

Mismatched lengths should raise ValueError.

()

Source from the content-addressed store, hash-verified

78
79
80def test_votes_weights_length_mismatch():
81 """Mismatched lengths should raise ValueError."""
82 import pytest
83 votes = [TierVote(tier_id=0, confidence=0.8)]
84 ens = Ensemble(weights=[0.5, 0.5]) # 2 weights but 1 vote
85 with pytest.raises(ValueError):
86 ens.decide(votes)

Callers

nothing calls this directly

Calls 3

decideMethod · 0.95
TierVoteClass · 0.90
EnsembleClass · 0.90

Tested by

no test coverage detected