Here are the examples of the python api utils.SQLAlchemy taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: call-congress Source File: test_server.py
def setUp(self):
server.app.config.from_object('config.ConfigTesting')
self.db = SQLAlchemy()
self.db.app = server.app
models.setUp(server.app)
self.app = server.app.test_client()
self.campaigns, self.legislators, self.districts = load_data()
# a default example where just Rep. Nacy Pelosi is called
self.example_params = dict(
campaignId='default',
repIds=[id_pelosi],
userPhone='415-000-1111',
zipcode='95110')