purging.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:telemetrics-backend 作者: clearlinux 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号