mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
fix: Remove unused imports and adjust code to use existing modules
This commit is contained in:
parent
7015c03a01
commit
a223ddce8b
1 changed files with 0 additions and 4 deletions
|
@ -461,8 +461,6 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
||||||
|
|
||||||
# Normalize path separators for Windows
|
# Normalize path separators for Windows
|
||||||
if os.name == "nt": # Check if running on Windows
|
if os.name == "nt": # Check if running on Windows
|
||||||
import re
|
|
||||||
|
|
||||||
expected_map = re.sub(
|
expected_map = re.sub(
|
||||||
r"tests/fixtures/sample-code-base/([^:]+)",
|
r"tests/fixtures/sample-code-base/([^:]+)",
|
||||||
r"tests\\fixtures\\sample-code-base\\\1",
|
r"tests\\fixtures\\sample-code-base\\\1",
|
||||||
|
@ -477,8 +475,6 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
||||||
# Compare the generated map with the expected map
|
# Compare the generated map with the expected map
|
||||||
if generated_map_str != expected_map:
|
if generated_map_str != expected_map:
|
||||||
# If they differ, show the differences and fail the test
|
# If they differ, show the differences and fail the test
|
||||||
import difflib
|
|
||||||
|
|
||||||
diff = list(
|
diff = list(
|
||||||
difflib.unified_diff(
|
difflib.unified_diff(
|
||||||
expected_map.splitlines(),
|
expected_map.splitlines(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue