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

Method setUp

tests/test_db.py:312–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

310 driver = "pymysql"
311
312 def setUp(self):
313 self.db = setup_database(self.dbname, driver=self.driver)
314 # In mysql, transactions are supported only with INNODB engine.
315 self.db.query("CREATE TABLE person (name text, email text) ENGINE=INNODB")
316
317 def testBoolean(self):
318 # boolean datatype is not supported in MySQL (at least until v5.0)

Callers

nothing calls this directly

Calls 2

setup_databaseFunction · 0.85
queryMethod · 0.45

Tested by

no test coverage detected