Skip to content

Commit c5f1fc6

Browse files
committed
fixed tests after merge
1 parent 622b66c commit c5f1fc6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

py/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def render_text_chunks(chunks, append_to_eol=False):
102102
if insert_before_cursor:
103103
vim.command("normal! i" + text)
104104
insert_before_cursor = False
105-
elif append_to_eol: # for cases when virtualedit=all is set, to avoid empty space
105+
elif append_to_eol: # for cases when virtualedit=all is set, to avoid empty space, see #148
106106
vim.command("normal! A" + text)
107107
else:
108108
vim.command("normal! a" + text)

tests/context_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_default_config():
5454
'token_file_path': '/custom/path/ai.token',
5555
}
5656
expected_context = {
57+
'command_type': 'chat',
5758
'config': { **default_config, 'options': expected_options },
5859
'prompt': 'translate to Slovak:\nHello world!',
5960
}
@@ -161,6 +162,7 @@ def test_image_role():
161162
'quality': 'hd',
162163
}
163164
expected_context = {
165+
'command_type': 'image',
164166
'config': { **default_image_config, 'options': expected_options },
165167
'prompt': 'picture of the moon',
166168
}

0 commit comments

Comments
 (0)