示例#1
0
 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()
示例#2
0
 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')