MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / setUpClass

Method setUpClass

tests/test_issue_806_fix.py:79–87  ·  view source on GitHub ↗

Set up KuzuDB connection for all tests.

(cls)

Source from the content-addressed store, hash-verified

77
78 @classmethod
79 def setUpClass(cls):
80 """Set up KuzuDB connection for all tests."""
81 db = _get_kuzu_db()
82 if db is None:
83 raise unittest.SkipTest("KuzuDB is not available or failed to initialize")
84 cls.db = db
85 cls.driver = cls.db.get_driver()
86 cls.backend = cls.db.get_backend_type()
87 print(f"\n✓ Connected to: {cls.backend}")
88
89 def test_01_backend_is_kuzudb(self):
90 """Verify we're using KuzuDB backend."""

Callers

nothing calls this directly

Calls 3

_get_kuzu_dbFunction · 0.85
get_driverMethod · 0.45
get_backend_typeMethod · 0.45

Tested by

no test coverage detected