fix: resolve CI linting errors
This commit is contained in:
@@ -60,8 +60,8 @@ struct Point {
|
|||||||
|
|
||||||
def test_summarize_change_simple(self, code_analyzer):
|
def test_summarize_change_simple(self, code_analyzer):
|
||||||
"""Test summarizing simple code changes."""
|
"""Test summarizing simple code changes."""
|
||||||
old_code = "def hello():\n return 'Hello'"
|
old_code = "def hello():\\n return 'Hello'"
|
||||||
new_code = "def hello():\n return 'Hello, World!'"
|
new_code = "def hello():\\n return 'Hello, World!'"
|
||||||
|
|
||||||
summary = code_analyzer.summarize_change(old_code, new_code, "python")
|
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):
|
def test_summarize_change_added_function(self, code_analyzer):
|
||||||
"""Test summarizing when a function is added."""
|
"""Test summarizing when a function is added."""
|
||||||
old_code = ""
|
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")
|
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):
|
def test_summarize_change_removed_function(self, code_analyzer):
|
||||||
"""Test summarizing when a function is removed."""
|
"""Test summarizing when a function is removed."""
|
||||||
old_code = "def old_func():\n pass"
|
old_code = "def old_func():\\n pass"
|
||||||
new_code = ""
|
new_code = ""
|
||||||
|
|
||||||
summary = code_analyzer.summarize_change(old_code, new_code, "python")
|
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):
|
def test_fallback_analysis_line_count(self, code_analyzer):
|
||||||
"""Test that fallback analysis includes line count."""
|
"""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)
|
result = code_analyzer._analyze_without_parser(new_code)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user