Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

test(provenance): import the real Groq and OpenAI classes in the LLM readiness tests (#2015)

Tymur66aff883aa1c
diff --git a/tests/provenance/test_all_modules.py b/tests/provenance/test_all_modules.py
index 2d517138..01cf4d55 100644
--- a/tests/provenance/test_all_modules.py
+++ b/tests/provenance/test_all_modules.py
@@ -147,25 +147,16 @@ class TestLLMsModule:
pytest.skip(f"llms module not available: {e}")
def test_groq_llm_ready(self):
- """Test GroqLLM is ready for provenance tracking."""
- try:
- from semantica.llms import GroqLLM
-
- # Should be able to import
- assert GroqLLM is not None
-
- except ImportError:
- pytest.skip("GroqLLM not available")
-
+ """Test Groq is ready for provenance tracking."""
+ from semantica.llms import Groq
+
+ assert Groq is not None
+
def test_openai_llm_ready(self):
"""Test OpenAI LLM is ready for provenance tracking."""
- try:
- from semantica.llms import OpenAILLM
-
- assert OpenAILLM is not None
-
- except ImportError:
- pytest.skip("OpenAILLM not available")
+ from semantica.llms import OpenAI
+
+ assert OpenAI is not None
class TestContextModule: