From 2acf8696bfcc01f7ac5d21b407618389464989a6 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Sat, 21 Mar 2026 17:24:33 +0100 Subject: [PATCH] fix: correct border strip test data to avoid false internal gaps Content word_boxes in test used x-spacing (i%3)*100 which created internal gaps larger than the border-to-content gap. Changed to (i%2)*51 so content words overlap and the border gap remains dominant. Co-Authored-By: Claude Opus 4.6 --- klausur-service/backend/tests/test_grid_editor_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/klausur-service/backend/tests/test_grid_editor_api.py b/klausur-service/backend/tests/test_grid_editor_api.py index d66111e..b94273c 100644 --- a/klausur-service/backend/tests/test_grid_editor_api.py +++ b/klausur-service/backend/tests/test_grid_editor_api.py @@ -1117,7 +1117,9 @@ class TestBorderStripFilter: ] content_wbs = [] for i in range(20): - content_wbs.append(self._make_wb(f"word{i}", 179 + (i % 3) * 100, 100 + i * 40)) + # Place content words at x=179 and x=280 (gap=1px between them, + # much smaller than the 45px border-to-content gap) + content_wbs.append(self._make_wb(f"word{i}", 179 + (i % 2) * 51, 100 + i * 40)) # Build zone with cells cells = [] # Border-only cells