Fix API tests (#581)

* Fix RAG streaming CLIs

* Fixed, all tests pass
This commit is contained in:
cybermaggedon 2025-12-04 21:11:56 +00:00 committed by GitHub
parent 664bce6182
commit 789d9713a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 199 additions and 299 deletions

View file

@ -108,7 +108,8 @@ class TestListConfigItems:
mock_list.assert_called_once_with(
url='http://custom.com',
config_type='prompt',
format_type='json'
format_type='json',
token=None
)
def test_list_main_uses_defaults(self):
@ -126,7 +127,8 @@ class TestListConfigItems:
mock_list.assert_called_once_with(
url='http://localhost:8088/',
config_type='prompt',
format_type='text'
format_type='text',
token=None
)
@ -193,7 +195,8 @@ class TestGetConfigItem:
url='http://custom.com',
config_type='prompt',
key='template-1',
format_type='json'
format_type='json',
token=None
)
@ -249,7 +252,8 @@ class TestPutConfigItem:
url='http://custom.com',
config_type='prompt',
key='new-template',
value='Custom prompt: {input}'
value='Custom prompt: {input}',
token=None
)
def test_put_main_with_stdin_arg(self):
@ -273,7 +277,8 @@ class TestPutConfigItem:
url='http://localhost:8088/',
config_type='prompt',
key='stdin-template',
value=stdin_content
value=stdin_content,
token=None
)
def test_put_main_mutually_exclusive_args(self):
@ -328,7 +333,8 @@ class TestDeleteConfigItem:
mock_delete.assert_called_once_with(
url='http://custom.com',
config_type='prompt',
key='old-template'
key='old-template',
token=None
)