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

Method setUp

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

Source from the content-addressed store, hash-verified

219 driver = "psycopg2"
220
221 def setUp(self):
222 super().setUp()
223 self.db.query("DROP TABLE IF EXISTS post")
224 self.db.query(
225 "create table post (id serial primary key, title text, body text)"
226 )
227
228 def tearDown(self):
229 self.db.query("DROP TABLE IF EXISTS post")

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected