Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

Make optional plugin tests checkout-safe

Christian9f2dcfa949bb
diff --git a/tests/test_chatbot_inference_plugin.py b/tests/test_chatbot_inference_plugin.py
index 65ad112..43d0d1b 100644
--- a/tests/test_chatbot_inference_plugin.py
+++ b/tests/test_chatbot_inference_plugin.py
@@ -32,6 +32,9 @@ for key, value in ENV_DEFAULTS.items():
os.environ.setdefault(key, value)
CHATBOT_PLUGIN_DIR = Path(__file__).resolve().parent.parent / "plugins" / "chatbot"
+if not (CHATBOT_PLUGIN_DIR / "main.py").is_file():
+ raise unittest.SkipTest("optional chatbot plugin is not installed")
+
if str(CHATBOT_PLUGIN_DIR) not in sys.path:
sys.path.insert(0, str(CHATBOT_PLUGIN_DIR))