def setUp(self):
'''Creates a test client, disables logging, connects to the database
and creates a table State for temporary testing purposes.
'''
self.app = app.test_client()
logging.disable(logging.CRITICAL)
BaseModel.database.connect()
BaseModel.database.create_tables([State])
评论列表
文章目录