mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
test case to tickle bug in wholefiles
This commit is contained in:
parent
d0b7753091
commit
40787b3637
1 changed files with 14 additions and 0 deletions
|
@ -27,6 +27,20 @@ class TestWholeFileCoder(unittest.TestCase):
|
||||||
|
|
||||||
self.patcher.stop()
|
self.patcher.stop()
|
||||||
|
|
||||||
|
def test_no_files(self):
|
||||||
|
# Initialize WholeFileCoder with the temporary directory
|
||||||
|
io = InputOutput(yes=True)
|
||||||
|
|
||||||
|
coder = WholeFileCoder(main_model=models.GPT35, io=io, fnames=[])
|
||||||
|
coder.partial_response_content = (
|
||||||
|
'To print "Hello, World!" in most programming languages, you can use the following'
|
||||||
|
' code:\n\n```python\nprint("Hello, World!")\n```\n\nThis code will output "Hello,'
|
||||||
|
' World!" to the console.'
|
||||||
|
)
|
||||||
|
|
||||||
|
# This is throwing ValueError!
|
||||||
|
coder.render_incremental_response(True)
|
||||||
|
|
||||||
def test_update_files(self):
|
def test_update_files(self):
|
||||||
# Create a sample file in the temporary directory
|
# Create a sample file in the temporary directory
|
||||||
sample_file = "sample.txt"
|
sample_file = "sample.txt"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue