mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
style: Format code with linter and remove extra whitespaces
This commit is contained in:
parent
81d39e9bde
commit
3b0a5a8b41
1 changed files with 13 additions and 21 deletions
|
@ -42,7 +42,7 @@ class TestInputOutput(unittest.TestCase):
|
|||
tool_error_color="FF2222",
|
||||
tool_warning_color="FFA500",
|
||||
assistant_output_color="0088ff",
|
||||
pretty=True
|
||||
pretty=True,
|
||||
)
|
||||
|
||||
# Check that # was added to hex colors
|
||||
|
@ -52,21 +52,13 @@ class TestInputOutput(unittest.TestCase):
|
|||
self.assertEqual(io.assistant_output_color, "#0088ff")
|
||||
|
||||
# Test with named colors (should be unchanged)
|
||||
io = InputOutput(
|
||||
user_input_color="blue",
|
||||
tool_error_color="red",
|
||||
pretty=True
|
||||
)
|
||||
io = InputOutput(user_input_color="blue", tool_error_color="red", pretty=True)
|
||||
|
||||
self.assertEqual(io.user_input_color, "blue")
|
||||
self.assertEqual(io.tool_error_color, "red")
|
||||
|
||||
# Test with pretty=False (should not modify colors)
|
||||
io = InputOutput(
|
||||
user_input_color="00cc00",
|
||||
tool_error_color="FF2222",
|
||||
pretty=False
|
||||
)
|
||||
io = InputOutput(user_input_color="00cc00", tool_error_color="FF2222", pretty=False)
|
||||
|
||||
self.assertIsNone(io.user_input_color)
|
||||
self.assertIsNone(io.tool_error_color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue