MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

Lib/test/test_sqlite3/test_backup.py:8–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class BackupTests(unittest.TestCase):
8 def setUp(self):
9 cx = self.cx = sqlite.connect(":memory:")
10 cx.execute('CREATE TABLE foo (key INTEGER)')
11 cx.executemany('INSERT INTO foo (key) VALUES (?)', [(3,), (4,)])
12 cx.commit()
13
14 def tearDown(self):
15 self.cx.close()

Callers

nothing calls this directly

Calls 4

executemanyMethod · 0.80
commitMethod · 0.80
connectMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected