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

Function test_disable_discards_buffer

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

Source from the content-addressed store, hash-verified

125
126
127def test_disable_discards_buffer(tmp_path):
128 _reset(tmp_path)
129 telem.enable()
130 rec = telem.TelemetryRecord(predicted_tier=0, outcome="success")
131 telem.buffer_record(rec)
132 assert telem.status()["pending_records"] == 1
133 telem.disable()
134 assert telem.status()["pending_records"] == 0
135
136
137def test_flush_moves_to_sent_log(tmp_path):

Callers

nothing calls this directly

Calls 2

_resetFunction · 0.85
statusMethod · 0.45

Tested by

no test coverage detected