fix ft api test

This commit is contained in:
Ishaan Jaff 2024-08-03 09:36:16 -07:00
parent a70d112b98
commit 1d56c2f83e

View file

@ -134,6 +134,9 @@ async def test_create_fine_tune_jobs_async():
except openai.RateLimitError: except openai.RateLimitError:
pass pass
except Exception as e: except Exception as e:
if "Job has already completed" in str(e):
pass
else:
pytest.fail(f"Error occurred: {e}") pytest.fail(f"Error occurred: {e}")
pass pass
@ -188,6 +191,9 @@ async def test_azure_create_fine_tune_jobs_async():
except openai.RateLimitError: except openai.RateLimitError:
pass pass
except Exception as e: except Exception as e:
if "Job has already completed" in str(e):
pass
else:
pytest.fail(f"Error occurred: {e}") pytest.fail(f"Error occurred: {e}")
pass pass