MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / make_db

Method make_db

eval/test_run_real_model.py:129–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127
128class AssertionEvaluationTest(unittest.TestCase):
129 def make_db(self):
130 tmp = tempfile.TemporaryDirectory()
131 self.addCleanup(tmp.cleanup)
132 db_path = Path(tmp.name) / "tracedecay.db"
133 conn = sqlite3.connect(db_path)
134 conn.execute("CREATE TABLE memory_facts (content TEXT)")
135 conn.execute("INSERT INTO memory_facts VALUES ('kept')")
136 conn.commit()
137 conn.close()
138 return db_path
139
140 def test_unsupported_assertion_kind_is_structured_failure(self):
141 db_path = self.make_db()

Calls 2

connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected