diff --git a/litellm/tests/test_fine_tuning_api.py b/litellm/tests/test_fine_tuning_api.py index 4eebcd2f7..20a58c4d0 100644 --- a/litellm/tests/test_fine_tuning_api.py +++ b/litellm/tests/test_fine_tuning_api.py @@ -134,7 +134,10 @@ async def test_create_fine_tune_jobs_async(): except openai.RateLimitError: pass except Exception as e: - pytest.fail(f"Error occurred: {e}") + if "Job has already completed" in str(e): + pass + else: + pytest.fail(f"Error occurred: {e}") pass @@ -188,7 +191,10 @@ async def test_azure_create_fine_tune_jobs_async(): except openai.RateLimitError: pass except Exception as e: - pytest.fail(f"Error occurred: {e}") + if "Job has already completed" in str(e): + pass + else: + pytest.fail(f"Error occurred: {e}") pass