From 4fe74d8e7f028cf8a441634b250ca37bae080a6e Mon Sep 17 00:00:00 2001 From: Otto Date: Thu, 5 Feb 2026 20:25:42 +0000 Subject: [PATCH] fix: Correct test position calculation for marker expansion The test had wrong indices - ABCDEF starts at position 26, not 27. --- .../api/features/chat/tools/test_binary_output_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/test_binary_output_processor.py b/autogpt_platform/backend/backend/api/features/chat/tools/test_binary_output_processor.py index 5a26261842..ba72eac749 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/test_binary_output_processor.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/test_binary_output_processor.py @@ -140,8 +140,8 @@ class TestExpandToMarkers: def test_expands_base64_start_end_markers(self): """Should expand to include ---BASE64_START--- and ---BASE64_END---.""" text = "prefix\n---BASE64_START---\nABCDEF\n---BASE64_END---\nsuffix" - # Base64 is at position 27-33 - start, end = _expand_to_markers(text, 27, 33) + # Base64 "ABCDEF" is at position 26-32 + start, end = _expand_to_markers(text, 26, 32) assert text[start:end] == "---BASE64_START---\nABCDEF\n---BASE64_END---" def test_expands_bracket_markers(self):