mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
fix: Update test to match error message format for line endings validation
This commit is contained in:
parent
ebb38c6518
commit
b9edec069a
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class TestInputOutput(unittest.TestCase):
|
||||||
with self.assertRaises(ValueError) as cm:
|
with self.assertRaises(ValueError) as cm:
|
||||||
io = InputOutput(line_endings="invalid")
|
io = InputOutput(line_endings="invalid")
|
||||||
self.assertIn("Invalid line_endings value: invalid", str(cm.exception))
|
self.assertIn("Invalid line_endings value: invalid", str(cm.exception))
|
||||||
self.assertIn("Must be one of: platform, lf, crlf", str(cm.exception))
|
self.assertIn("Must be one of: platform, crlf, lf", str(cm.exception))
|
||||||
|
|
||||||
def test_no_color_environment_variable(self):
|
def test_no_color_environment_variable(self):
|
||||||
with patch.dict(os.environ, {"NO_COLOR": "1"}):
|
with patch.dict(os.environ, {"NO_COLOR": "1"}):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue