test_application.py 文件源码

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

项目:Stroll-Safely 作者: Munnu 项目源码 文件源码
def setUp(self):
        """Stuff to do before every test."""

        # party like a rockstar, totally dude.
        print 'SETUP for Database!'

        # Get the Flask test client
        self.client = app.test_client()

        # Show Flask errors that happen during tests
        app.config['TESTING'] = True

        # Connect to test database
        # connect_to_db(app, "postgresql:///test_data")  # not using this
        connect_to_db(app, "postgresql:///crime_data_gis")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号