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

Method setUp

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

Source from the content-addressed store, hash-verified

71 driver = None
72
73 def setUp(self):
74 self.db = setup_database(self.dbname, driver=self.driver)
75 self.db.query("DROP TABLE IF EXISTS person")
76 self.db.query("CREATE TABLE person (name text, email text, active boolean)")
77
78 def tearDown(self):
79 self.db.query("DROP TABLE IF EXISTS person")

Callers 1

setUpMethod · 0.45

Calls 2

setup_databaseFunction · 0.85
queryMethod · 0.45

Tested by

no test coverage detected