test: handle anthropic overloaded error

This commit is contained in:
Krrish Dholakia 2024-11-15 00:43:56 +05:30
parent 50fe6a639d
commit 2995f3adc2

View file

@ -434,6 +434,8 @@ def test_completion_claude_3():
)
# Add any assertions, here to check response args
print(response)
except litellm.InternalServerError as e:
pytest.skip(f"InternalServerError - {str(e)}")
except Exception as e:
pytest.fail(f"Error occurred: {e}")