From 844ab5f1e5bbea411e5de35d145c1278f31d205d Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 30 Oct 2023 18:18:02 -0700 Subject: [PATCH] test(test_async_fn.py): add better error logging --- litellm/tests/test_async_fn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/tests/test_async_fn.py b/litellm/tests/test_async_fn.py index 72e6fc3a7eb..3d83822ef19 100644 --- a/litellm/tests/test_async_fn.py +++ b/litellm/tests/test_async_fn.py @@ -19,7 +19,7 @@ def test_async_response(): try: response = await acompletion(model="gpt-3.5-turbo", messages=messages) except Exception as e: - pass + pytest.fail(f"An exception occurred: {e}") response = asyncio.run(test_get_response()) # print(response) @@ -51,7 +51,7 @@ def test_get_response_streaming(): assert len(output) > 0, "Length of output needs to be greater than 0." except Exception as e: - pass + pytest.fail(f"An exception occurred: {e}") return response asyncio.run(test_async_call())