mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix fine tune api tests
This commit is contained in:
parent
7fae2aa394
commit
93b0d23997
1 changed files with 4 additions and 3 deletions
|
@ -81,8 +81,9 @@ def test_create_fine_tune_job():
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if "Job has already completed" in str(e):
|
if "Job has already completed" in str(e):
|
||||||
pass
|
return
|
||||||
pytest.fail(f"Error occurred: {e}")
|
else:
|
||||||
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
@ -137,7 +138,7 @@ async def test_create_fine_tune_jobs_async():
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if "Job has already completed" in str(e):
|
if "Job has already completed" in str(e):
|
||||||
pass
|
return
|
||||||
else:
|
else:
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue