mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
style: Format code with consistent indentation and line breaks
This commit is contained in:
parent
45f6f88a46
commit
07aa969860
1 changed files with 10 additions and 2 deletions
|
@ -378,11 +378,19 @@ class TestMain(TestCase):
|
||||||
def test_map_tokens_option(self):
|
def test_map_tokens_option(self):
|
||||||
with GitTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
with patch("aider.repomap.RepoMap") as MockRepoMap:
|
with patch("aider.repomap.RepoMap") as MockRepoMap:
|
||||||
main(["--model", "gpt-4", "--map-tokens", "0", "--exit"], input=DummyInput(), output=DummyOutput())
|
main(
|
||||||
|
["--model", "gpt-4", "--map-tokens", "0", "--exit"],
|
||||||
|
input=DummyInput(),
|
||||||
|
output=DummyOutput(),
|
||||||
|
)
|
||||||
MockRepoMap.assert_not_called()
|
MockRepoMap.assert_not_called()
|
||||||
|
|
||||||
def test_map_tokens_option_with_non_zero_value(self):
|
def test_map_tokens_option_with_non_zero_value(self):
|
||||||
with GitTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
with patch("aider.repomap.RepoMap") as MockRepoMap:
|
with patch("aider.repomap.RepoMap") as MockRepoMap:
|
||||||
main(["--model", "gpt-4", "--map-tokens", "1000", "--exit"], input=DummyInput(), output=DummyOutput())
|
main(
|
||||||
|
["--model", "gpt-4", "--map-tokens", "1000", "--exit"],
|
||||||
|
input=DummyInput(),
|
||||||
|
output=DummyOutput(),
|
||||||
|
)
|
||||||
MockRepoMap.assert_called_once()
|
MockRepoMap.assert_called_once()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue