mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Apply linter formatting to test_coder.py
This commit is contained in:
parent
41a3c27aba
commit
d382869b98
1 changed files with 2 additions and 8 deletions
|
@ -943,10 +943,7 @@ This command will print 'Hello, World!' to the console."""
|
||||||
original_content = coder.fmt_system_prompt(coder.gpt_prompts.main_system)
|
original_content = coder.fmt_system_prompt(coder.gpt_prompts.main_system)
|
||||||
|
|
||||||
# Check just the first line
|
# Check just the first line
|
||||||
self.assertEqual(
|
self.assertEqual(system_message["content"].split("\n")[0], original_content.split("\n")[0])
|
||||||
system_message["content"].split('\n')[0],
|
|
||||||
original_content.split('\n')[0]
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_system_prompt_prefix_empty(self):
|
def test_system_prompt_prefix_empty(self):
|
||||||
# Test behavior when system_prompt_prefix is empty string
|
# Test behavior when system_prompt_prefix is empty string
|
||||||
|
@ -967,10 +964,7 @@ This command will print 'Hello, World!' to the console."""
|
||||||
original_content = coder.fmt_system_prompt(coder.gpt_prompts.main_system)
|
original_content = coder.fmt_system_prompt(coder.gpt_prompts.main_system)
|
||||||
|
|
||||||
# Check just the first line
|
# Check just the first line
|
||||||
self.assertEqual(
|
self.assertEqual(system_message["content"].split("\n")[0], original_content.split("\n")[0])
|
||||||
system_message["content"].split('\n')[0],
|
|
||||||
original_content.split('\n')[0]
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_coder_create_with_new_file_oserror(self):
|
def test_coder_create_with_new_file_oserror(self):
|
||||||
with GitTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue