From e05dc989c40c4a867453d5fc509db4f99b4fe460 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 8 Sep 2023 20:27:41 -0700 Subject: [PATCH] fix test exceptions --- litellm/tests/test_exceptions.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/litellm/tests/test_exceptions.py b/litellm/tests/test_exceptions.py index 95e7f7774d..8a7af6a580 100644 --- a/litellm/tests/test_exceptions.py +++ b/litellm/tests/test_exceptions.py @@ -46,19 +46,6 @@ def test_context_window(model): with pytest.raises(ContextWindowExceededError): completion(model=model, messages=messages) -def test_uninstall_cohere_and_completion_call(): - # Uninstall cohere package - subprocess.call(["pip", "uninstall", "cohere"]) - - model = "command-nightly" - sample_text = "how does a court case get to the Supreme Court?" * 1000 - messages = [{"content": sample_text, "role": "user"}] - - # with pytest.raises(Exception): - completion(model=model, messages=messages) - -test_uninstall_cohere_and_completion_call() - # Test 2: InvalidAuth Errors @pytest.mark.parametrize("model", models) def invalid_auth(model): # set the model key to an invalid key, depending on the model