def pytest_funcarg__db(request): s = TestServer() db = s.get_db('test') pm = PackageManager() pm.use('cakeplant.bank') pm.set_db(db, 'taburet.transactions', 'taburet.accounts') pm.sync_design_documents() return db
def pytest_funcarg__config(request): s = TestServer() return Configuration(s.get_db("test"))