fix fine tune api tests

This commit is contained in:
Ishaan Jaff 2024-08-03 19:02:11 -07:00
parent 7fae2aa394
commit 93b0d23997

View file

@ -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