conftest.py 文件源码

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

项目:do-portal 作者: certeu 项目源码 文件源码
def db(request, app):
    """Create test database tables"""
    _db.drop_all()
    # Create the tables based on the current model
    _db.create_all()

    user = User.create_test_user()
    TestClient.test_user = user
    app.test_client_class = TestClient
    app.response_class = TestResponse

    _db.session.commit()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号