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

Function test_result_has_method

tests/test_ensemble.py:43–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_result_has_method():
44 votes = [TierVote(tier_id=1, confidence=0.9)]
45 ens = Ensemble(weights=[1.0])
46 result = ens.decide(votes)
47 assert result.method in ("direct", "conservative")
48
49
50def test_single_low_confidence_vote_does_not_become_certain():

Callers

nothing calls this directly

Calls 3

decideMethod · 0.95
TierVoteClass · 0.90
EnsembleClass · 0.90

Tested by

no test coverage detected