예제 #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')