From 09a471da1070c80b93c188ea3ff9f4dfcbbee4fe Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 6 Jun 2024 16:43:12 -0700 Subject: [PATCH] test(test_assistants.py): add more error logging --- litellm/tests/test_assistants.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/litellm/tests/test_assistants.py b/litellm/tests/test_assistants.py index 5f565f67cc..d5f047a092 100644 --- a/litellm/tests/test_assistants.py +++ b/litellm/tests/test_assistants.py @@ -198,7 +198,11 @@ async def test_aarun_thread_litellm(sync_mode, provider, is_streaming): ) assert isinstance(messages.data[0], Message) else: - pytest.fail("An unexpected error occurred when running the thread") + pytest.fail( + "An unexpected error occurred when running the thread, {}".format( + run + ) + ) else: added_message = await litellm.a_add_message(**data) @@ -226,4 +230,8 @@ async def test_aarun_thread_litellm(sync_mode, provider, is_streaming): ) assert isinstance(messages.data[0], Message) else: - pytest.fail("An unexpected error occurred when running the thread") + pytest.fail( + "An unexpected error occurred when running the thread, {}".format( + run + ) + )