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

Method setUp

Lib/test/test_sqlite3/test_userfunctions.py:789–801  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

787 return sqlite.SQLITE_OK
788
789 def setUp(self):
790 self.con = sqlite.connect(":memory:")
791 self.con.executescript("""
792 create table t1 (c1, c2);
793 create table t2 (c1, c2);
794 insert into t1 (c1, c2) values (1, 2);
795 insert into t2 (c1, c2) values (4, 5);
796 """)
797
798 # For our security test:
799 self.con.execute("select c2 from t2")
800
801 self.con.set_authorizer(self.authorizer_cb)
802
803 def tearDown(self):
804 self.con.close()

Callers

nothing calls this directly

Calls 4

executescriptMethod · 0.80
set_authorizerMethod · 0.80
connectMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected