mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
style: format code and run linter on test_io.py
This commit is contained in:
parent
37236aa907
commit
e832ee8450
1 changed files with 7 additions and 4 deletions
|
@ -2,8 +2,9 @@ import os
|
|||
import unittest
|
||||
from pathlib import Path
|
||||
from unittest.mock import MagicMock, patch
|
||||
from prompt_toolkit.document import Document
|
||||
|
||||
from prompt_toolkit.completion import CompleteEvent
|
||||
from prompt_toolkit.document import Document
|
||||
|
||||
from aider.dump import dump # noqa: F401
|
||||
from aider.io import AutoCompleter, ConfirmGroup, InputOutput
|
||||
|
@ -217,9 +218,11 @@ class TestInputOutput(unittest.TestCase):
|
|||
complete_event = CompleteEvent()
|
||||
|
||||
# Call get_command_completions with the required parameters
|
||||
completions = list(autocompleter.get_command_completions(
|
||||
document, complete_event, "/model gpt", ["/model", "gpt"]
|
||||
))
|
||||
completions = list(
|
||||
autocompleter.get_command_completions(
|
||||
document, complete_event, "/model gpt", ["/model", "gpt"]
|
||||
)
|
||||
)
|
||||
|
||||
# Extract completion texts
|
||||
result = [completion.text for completion in completions]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue