(tmp_path)
| 114 | # ─── Buffer + Transmission ─── |
| 115 | |
| 116 | def 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 | |
| 127 | def test_disable_discards_buffer(tmp_path): |