def setUp(self): mm.setDatabaseURI('sqlite:////tmp/unittest.db') mm.init() mm.create() self.app = app.test_client() self.username = "" self.password = "" self.create_user()
def setUp(self): mm.setDatabaseURI('sqlite:////tmp/unittest.db') mm.init() mm.create() self.app = app.test_client() self.user = self.create_user('test', 'test')