def setUp(self):
"""Stuff to do before every test."""
# party like a rockstar, totally dude.
print 'SETUP for Flask'
# 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 now
connect_to_db(app, "postgres:///crime_data_gis")
评论列表
文章目录