diff --git a/tests/unit/llms/test_llm_llamacpp.py b/tests/unit/llms/test_llm_llamacpp.py index 7042d386eb6cc5c644b07d0b5236956357dd3987..bd3e88791e950a6663433c6dd317a15d4c0db737 100644 --- a/tests/unit/llms/test_llm_llamacpp.py +++ b/tests/unit/llms/test_llm_llamacpp.py @@ -15,7 +15,6 @@ def llamacpp_llm(mocker): class TestLlamaCppLLM: - def test_llama_cpp_import_errors(self, llamacpp_llm): with patch.dict("sys.modules", {"llama_cpp": None}): with pytest.raises(ImportError) as error: diff --git a/tests/unit/llms/test_llm_mistral.py b/tests/unit/llms/test_llm_mistral.py index cabf6521dd304c4b7005badeb68d3454806c66d1..420c98612ef0940bd7e9f6310e2f2ec1c14e4dfb 100644 --- a/tests/unit/llms/test_llm_mistral.py +++ b/tests/unit/llms/test_llm_mistral.py @@ -3,8 +3,6 @@ import pytest from semantic_router.llms import MistralAILLM from semantic_router.schema import Message -from unittest.mock import patch - @pytest.fixture def mistralai_llm(mocker): @@ -13,16 +11,16 @@ def mistralai_llm(mocker): class TestMistralAILLM: - def test_mistral_llm_import_errors(self): - with patch.dict("sys.modules", {"mistralai": None}): - with pytest.raises(ImportError) as error: - MistralAILLM(mistralai_api_key="random") + # def test_mistral_llm_import_errors(self): + # with patch.dict("sys.modules", {"mistralai": None}): + # with pytest.raises(ImportError) as error: + # MistralAILLM() - assert ( - "Please install MistralAI to use MistralAI LLM. " - "You can install it with: " - "`pip install 'semantic-router[mistralai]'`" in str(error.value) - ) + # assert ( + # "Please install MistralAI to use MistralAI LLM. " + # "You can install it with: " + # "`pip install 'semantic-router[mistralai]'`" in str(error.value) + # ) def test_mistralai_llm_init_with_api_key(self, mistralai_llm): assert mistralai_llm._client is not None, "Client should be initialized"