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

Function test_buffer_and_status

tests/test_telemetry.py:116–124  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

114# ─── Buffer + Transmission ───
115
116def test_buffer_and_status(tmp_path):
117 _reset(tmp_path)
118 telem.enable()
119 rec = telem.TelemetryRecord(predicted_tier=0, outcome="success")
120 telem.buffer_record(rec)
121 s = telem.status()
122 assert s["enabled"]
123 assert s["pending_records"] == 1
124 assert s["total_sent"] == 0
125
126
127def test_disable_discards_buffer(tmp_path):

Callers

nothing calls this directly

Calls 2

_resetFunction · 0.85
statusMethod · 0.45

Tested by

no test coverage detected