Skip to main content
Glama
testcustom.py627 B
""" Custom database tests """ import unittest from txtai.database import DatabaseFactory class TestCustom(unittest.TestCase): """ Custom database backend tests. """ def testCustomBackend(self): """ Test resolving a custom backend """ database = DatabaseFactory.create({"content": "txtai.database.SQLite"}) self.assertIsNotNone(database) def testCustomBackendNotFound(self): """ Test resolving an unresolvable backend """ with self.assertRaises(ImportError): DatabaseFactory.create({"content": "notfound.database"})

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/neuml/txtai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server