Fix #24: Provider-Bereich kompakter – VBox-Spacing auf 2px, unteres Padding auf 4px

This commit is contained in:
2026-04-28 06:56:00 +02:00
parent ec23b2455a
commit 4fa4c152a5
3 changed files with 135 additions and 3 deletions
+31
View File
@@ -0,0 +1,31 @@
base = r'D:\Dev\Projects\pdf-umbenenner-parent'
files_to_fix = [
rf'{base}\pdf-umbenenner-application\src\test\java\de\gecheckt\pdf\umbenenner\application\usecase\BatchRunProgressObservationTest.java',
rf'{base}\pdf-umbenenner-adapter-in-gui\src\test\java\de\gecheckt\pdf\umbenenner\adapter\in\gui\batchrun\GuiBatchRunCoordinatorTest.java',
rf'{base}\pdf-umbenenner-adapter-in-gui\src\test\java\de\gecheckt\pdf\umbenenner\adapter\in\gui\batchrun\GuiBatchRunTabSmokeTest.java',
rf'{base}\pdf-umbenenner-adapter-in-gui\src\test\java\de\gecheckt\pdf\umbenenner\adapter\in\gui\batchrun\GuiBatchRunTabSelectionSmokeTest.java',
]
for path in files_to_fix:
with open(path, 'rb') as f:
content = f.read()
normalized = content.replace(b'\r\n', b'\n')
# Replace SKIPPED that is NOT already followed by _ALREADY or _FINAL
import re
new_content = re.sub(
b'DocumentCompletionStatus\\.SKIPPED(?!_)',
b'DocumentCompletionStatus.SKIPPED_ALREADY_PROCESSED',
normalized
)
# Also fix the string "row:SKIPPED:" in coordinator test
new_content = new_content.replace(b'"row:SKIPPED:', b'"row:SKIPPED_ALREADY_PROCESSED:')
if new_content != normalized:
result = new_content.replace(b'\n', b'\r\n')
with open(path, 'wb') as f:
f.write(result)
print(f'FIXED: {path.split(chr(92))[-1]}')
else:
print(f'NO CHANGE: {path.split(chr(92))[-1]}')