🐛 fix(test_agents_template.py): fix incorrect variable name in test_zero_shot_agent function
🐛 fix(test_endpoints.py): add missing pytest.mark.async_test decorator to test_async_task_processing function
This commit is contained in:
parent
507d6a756d
commit
8987c6d969
2 changed files with 4 additions and 3 deletions
|
|
@ -31,15 +31,15 @@ def test_zero_shot_agent(client: TestClient, logged_in_headers):
|
||||||
}
|
}
|
||||||
|
|
||||||
# Additional assertions for other template variables
|
# Additional assertions for other template variables
|
||||||
assert template["callback_service"] == {
|
assert template["callback_manager"] == {
|
||||||
"required": False,
|
"required": False,
|
||||||
"dynamic": False,
|
"dynamic": False,
|
||||||
"placeholder": "",
|
"placeholder": "",
|
||||||
"show": False,
|
"show": False,
|
||||||
"multiline": False,
|
"multiline": False,
|
||||||
"password": False,
|
"password": False,
|
||||||
"name": "callback_service",
|
"name": "callback_manager",
|
||||||
"type": "BaseCallbackService",
|
"type": "BaseCallbackManager",
|
||||||
"list": False,
|
"list": False,
|
||||||
"advanced": False,
|
"advanced": False,
|
||||||
"info": "",
|
"info": "",
|
||||||
|
|
|
||||||
|
|
@ -452,6 +452,7 @@ def test_basic_chat_with_two_session_ids_and_names(client, added_flow, created_a
|
||||||
|
|
||||||
|
|
||||||
# Test function without loop
|
# Test function without loop
|
||||||
|
@pytest.mark.async_test
|
||||||
def test_async_task_processing(client, added_flow, created_api_key):
|
def test_async_task_processing(client, added_flow, created_api_key):
|
||||||
headers = {"x-api-key": created_api_key.api_key}
|
headers = {"x-api-key": created_api_key.api_key}
|
||||||
post_data = {"inputs": {"text": "Hi, My name is Gabriel"}}
|
post_data = {"inputs": {"text": "Hi, My name is Gabriel"}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue