(tmp_path)
| 125 | |
| 126 | |
| 127 | def 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 | |
| 137 | def test_flush_moves_to_sent_log(tmp_path): |