fix: resolve CI linting errors
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user