fix: resolve CI linting errors
Some checks failed
CI / test (3.10) (push) Failing after 10s
CI / test (3.11) (push) Failing after 11s
CI / test (3.12) (push) Failing after 11s
CI / lint (push) Failing after 11s
CI / build (push) Failing after 13s

This commit is contained in:
2026-02-02 15:01:00 +00:00
parent 07ec3fbb9e
commit 54c46c759d

View File

@@ -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)