def setUp(self):
app.testing = True
app.config.from_object('config_local.Testing')
app.config["MAX_DAYS_KEEP_UNFILTERED_RECORDS"] = 5
app.config["PURGE_FILTERED_RECORDS"] = {
"severity": {
1: 1,
4: 0
},
"classification": {
"test/keep/one": 0,
"test/discard/*": 1,
}
}
app.debug = False
self.app_context = app.app_context()
self.app_context.push()
db.init_app(current_app)
db.create_all()
self.client = app.test_client()
评论列表
文章目录