From 54c46c759db1947e40911b9670d4ed0dc77cee17 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 15:01:00 +0000 Subject: [PATCH] fix: resolve CI linting errors --- tests/test_code_analyzer.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/test_code_analyzer.py b/tests/test_code_analyzer.py index 8cc1867..10dbd15 100644 --- a/tests/test_code_analyzer.py +++ b/tests/test_code_analyzer.py @@ -60,8 +60,8 @@ struct Point { def test_summarize_change_simple(self, code_analyzer): """Test summarizing simple code changes.""" - old_code = "def hello():\n return 'Hello'" - new_code = "def hello():\n return 'Hello, World!'" + old_code = "def hello():\\n return 'Hello'" + new_code = "def hello():\\n return 'Hello, World!'" summary = code_analyzer.summarize_change(old_code, new_code, "python") @@ -71,7 +71,7 @@ struct Point { def test_summarize_change_added_function(self, code_analyzer): """Test summarizing when a function is added.""" old_code = "" - new_code = "def new_func():\n pass" + new_code = "def new_func():\\n pass" summary = code_analyzer.summarize_change(old_code, new_code, "python") @@ -80,7 +80,7 @@ struct Point { def test_summarize_change_removed_function(self, code_analyzer): """Test summarizing when a function is removed.""" - old_code = "def old_func():\n pass" + old_code = "def old_func():\\n pass" new_code = "" summary = code_analyzer.summarize_change(old_code, new_code, "python") @@ -119,8 +119,7 @@ def multiply(x, y): def test_fallback_analysis_line_count(self, code_analyzer): """Test that fallback analysis includes line count.""" - old_code = "line1\nline2" - new_code = "line1\nline2\nline3" + new_code = "line1\\nline2\\nline3" result = code_analyzer._analyze_without_parser(new_code)