From 93b0d239979cc1e653058773c3970dd06ac5f2c6 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 3 Aug 2024 19:02:11 -0700 Subject: [PATCH] fix fine tune api tests --- litellm/tests/test_fine_tuning_api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litellm/tests/test_fine_tuning_api.py b/litellm/tests/test_fine_tuning_api.py index f02af1b9276..412ffb497c1 100644 --- a/litellm/tests/test_fine_tuning_api.py +++ b/litellm/tests/test_fine_tuning_api.py @@ -81,8 +81,9 @@ def test_create_fine_tune_job(): pass except Exception as e: if "Job has already completed" in str(e): - pass - pytest.fail(f"Error occurred: {e}") + return + else: + pytest.fail(f"Error occurred: {e}") @pytest.mark.asyncio @@ -137,7 +138,7 @@ async def test_create_fine_tune_jobs_async(): pass except Exception as e: if "Job has already completed" in str(e): - pass + return else: pytest.fail(f"Error occurred: {e}") pass