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

Function test_signal_is_protocol

tests/test_signal_base.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def test_signal_is_protocol():
20 class DummySignal:
21 def predict(self, row: dict) -> TierVote:
22 return TierVote(tier_id=0, confidence=1.0)
23
24 sig = DummySignal()
25 result = sig.predict({"messages": []})
26 assert result.tier_id == 0
27
28
29def test_tier_vote_invalid_tier_id():

Callers

nothing calls this directly

Calls 2

predictMethod · 0.95
DummySignalClass · 0.85

Tested by

no test coverage detected