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

Class _FakeConn

tests/unit/core/test_database_kuzu_compat.py:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 return []
12
13class _FakeConn:
14 def __init__(self, fail_with=None):
15 self.queries = []
16 self.fail_with = fail_with
17
18 def execute(self, query, params):
19 self.queries.append((query, params))
20 if self.fail_with is not None:
21 raise Exception(self.fail_with)
22 return _FakeRawResult()
23
24
25def _make_importers_query():

Calls

no outgoing calls