From 2801756e56a24de1efa93ae4e6306fcb97eba5ee Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 15 May 2026 15:42:24 +0000 Subject: [PATCH] =?UTF-8?q?Blank=20separator=20columns=20(E,=20U)=20carry?= =?UTF-8?q?=20no=20header=20fill=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/magic_plan/tests/test_audit_script.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/backend/magic_plan/tests/test_audit_script.py b/backend/magic_plan/tests/test_audit_script.py index 35721f0d..fea487a5 100644 --- a/backend/magic_plan/tests/test_audit_script.py +++ b/backend/magic_plan/tests/test_audit_script.py @@ -302,3 +302,18 @@ def test_write_data_rows_places_door_data_at_cols_22_to_25() -> None: assert ws.cell(row=3, column=23).value == 762.0 assert ws.cell(row=3, column=28).value is None assert ws.cell(row=3, column=29).value is None + + +def test_write_headers_blank_separator_columns_have_no_fill() -> None: + # Arrange + wb = openpyxl.Workbook() + ws = wb.active # type: ignore[assignment] + + # Act + _write_headers(ws) + + # Assert — cols 5 (E) and 21 (U) have no fill in either header row + for col in (5, 21): + for row in (1, 2): + fill = ws.cell(row=row, column=col).fill + assert fill.patternType is None, f"col {col} row {row} should have no fill"