python类init_db()的实例源码

setup.py 文件源码 项目:mpeds-coder 作者: MPEDS 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def main():
    #init_db()
    addArticles('/home/ubuntu/article-metadata/us-newswires-to-sheriff-2017-09-15.csv', 'black_newswires')
    #loadVariableOptions("dropdowns.csv", reset = True)
    #loadVariableOptions("dropdowns-bp.csv")
    # addUsersExample()
    # addQueueExample()
test.py 文件源码 项目:2017-rapdev-backend 作者: rit-sse 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def setUp(self):
        """Set up for the tests."""
        self.db_fd, self.db_name = tempfile.mkstemp()
        database.set_engine('sqlite:///' + self.db_name)
        database.init_db()
        self.app = main.app.test_client()


问题


面经


文章

微信
公众号

扫码关注公众号