Skip to content

Commit

Permalink
Update test_copy to omit testing when oai config is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinganc committed Nov 19, 2024
1 parent 418a6cd commit a0382d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit_tests/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ def fun(x):
optimizer = OptoPrime([x])
optimizer2 = copy.deepcopy(optimizer)

llm = AutoGenLLM()
copy.deepcopy(llm)
try:
llm = AutoGenLLM()
copy.deepcopy(llm)
except FileNotFoundError as e:
print(f'Error: {e}')
print('Omit the test.')

0 comments on commit a0382d8

Please sign in to comment.