🐛 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:
Gabriel Luiz Freitas Almeida 2023-09-16 00:05:03 -03:00
commit 8987c6d969
2 changed files with 4 additions and 3 deletions

View file

@ -31,15 +31,15 @@ def test_zero_shot_agent(client: TestClient, logged_in_headers):
}
# Additional assertions for other template variables
assert template["callback_service"] == {
assert template["callback_manager"] == {
"required": False,
"dynamic": False,
"placeholder": "",
"show": False,
"multiline": False,
"password": False,
"name": "callback_service",
"type": "BaseCallbackService",
"name": "callback_manager",
"type": "BaseCallbackManager",
"list": False,
"advanced": False,
"info": "",

View file

@ -452,6 +452,7 @@ def test_basic_chat_with_two_session_ids_and_names(client, added_flow, created_a
# Test function without loop
@pytest.mark.async_test
def test_async_task_processing(client, added_flow, created_api_key):
headers = {"x-api-key": created_api_key.api_key}
post_data = {"inputs": {"text": "Hi, My name is Gabriel"}}