Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

test: add coverage for lazy provider factory functions

xf gongb25975f5db3c
diff --git a/tests/providers/test_init.py b/tests/providers/test_init.py
new file mode 100644
index 0000000..35a5d5f
--- /dev/null
+++ b/tests/providers/test_init.py
@@ -0,0 +1,19 @@
+from cubepi.providers import (
+ get_anthropic_provider,
+ get_openai_provider,
+ get_openai_responses_provider,
+)
+
+
+class TestLazyProviderFactories:
+ def test_get_anthropic_provider(self):
+ cls = get_anthropic_provider()
+ assert cls.__name__ == "AnthropicProvider"
+
+ def test_get_openai_provider(self):
+ cls = get_openai_provider()
+ assert cls.__name__ == "OpenAIProvider"
+
+ def test_get_openai_responses_provider(self):
+ cls = get_openai_responses_provider()
+ assert cls.__name__ == "OpenAIResponsesProvider"