mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
test: add test case for TERM=dumb terminal handling
This commit is contained in:
parent
c1ba7db8a1
commit
e6be69ec6d
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,13 @@ class TestInputOutput(unittest.TestCase):
|
|||
io = InputOutput(fancy_input=False)
|
||||
self.assertFalse(io.pretty)
|
||||
|
||||
def test_dumb_terminal(self):
|
||||
with patch.dict(os.environ, {"TERM": "dumb"}):
|
||||
io = InputOutput(fancy_input=True)
|
||||
self.assertTrue(io.is_dumb_terminal)
|
||||
self.assertFalse(io.pretty)
|
||||
self.assertIsNone(io.prompt_session)
|
||||
|
||||
def test_autocompleter_get_command_completions(self):
|
||||
# Step 3: Mock the commands object
|
||||
commands = MagicMock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue