From a13ac7d9170472b6607d5ad90c10dc2ebf584bb9 Mon Sep 17 00:00:00 2001 From: rouggy Date: Sun, 30 Aug 2026 21:03:03 +0200 Subject: [PATCH] test: the bulk-edit guard learns the integer My-station fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit my_dxcc/my_cq_zone/my_itu_zone go through BulkSetIntField, not the string column map — the guard flagged them as unwritable ever since they were added, which is the drift it exists to catch, one package over. --- bulk_fields_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bulk_fields_test.go b/bulk_fields_test.go index 9861466..5d8277f 100644 --- a/bulk_fields_test.go +++ b/bulk_fields_test.go @@ -33,6 +33,12 @@ func TestBulkEditFieldsAreWritable(t *testing.T) { id := m[1] // Handled before the column map: freq takes a numeric path (freq_hz + // band together) and the extras live in extras_json. + // The integer My-station fields take their own numeric path + // (BulkSetIntField + bulkEditableIntCols in the repo), added after this + // guard was written — which is exactly the drift it exists to catch. + if id == "my_dxcc" || id == "my_cq_zone" || id == "my_itu_zone" { + continue + } if id == "freq" || qso.IsBulkEditableExtra(id) { continue }