From b014a72f7a33b7884fd341a136d2a77542cdce02 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 6 May 2024 11:19:34 -0700 Subject: [PATCH] test(test_openai_endpoints.py): change key --- litellm/tests/test_completion.py | 2 ++ tests/test_openai_endpoints.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py index d7f7e1940..b7768cf37 100644 --- a/litellm/tests/test_completion.py +++ b/litellm/tests/test_completion.py @@ -1621,6 +1621,7 @@ def test_completion_ollama_function_call_stream(model): pytest.fail(f"Error occurred: {e}") +@pytest.mark.skip(reason="local test") @pytest.mark.parametrize( ("model"), [ @@ -1669,6 +1670,7 @@ async def test_acompletion_ollama_function_call(model): pytest.fail(f"Error occurred: {e}") +@pytest.mark.skip(reason="local test") @pytest.mark.parametrize( ("model"), [ diff --git a/tests/test_openai_endpoints.py b/tests/test_openai_endpoints.py index c6df43050..38e87c254 100644 --- a/tests/test_openai_endpoints.py +++ b/tests/test_openai_endpoints.py @@ -328,11 +328,10 @@ async def test_chat_completion_old_key(): """ async with aiohttp.ClientSession() as session: try: - key = "sk-ecMXHujzUtKCvHcwacdaTw" + key = "sk--W0Ph0uDZLVD7V7LQVrslg" await chat_completion(session=session, key=key) except Exception as e: - key = "sk-ecMXHujzUtKCvHcwacdaTw" # try diff db key (in case db url is for the other db) - await chat_completion(session=session, key=key) + pytest.fail("Invalid api key") @pytest.mark.asyncio