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

Method setUp

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

Source from the content-addressed store, hash-verified

295 driver = "MySQLdb"
296
297 def setUp(self):
298 self.db = setup_database(self.dbname, driver=self.driver)
299 # In mysql, transactions are supported only with INNODB engine.
300 self.db.query("CREATE TABLE person (name text, email text) ENGINE=INNODB")
301
302 def testBoolean(self):
303 # 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