def setUp(self):
     self.app = create_app(TestingConfig)
     self.client = self.app.test_client()
     self.ctx = self.app.test_request_context()
     self.ctx.push()
     self.app.preprocess_request()
     for sql in SQL:
         for statement in process_sql(sql):
             g.db.execute(statement)
 def setUp(self):
     self.app = create_app(TestingConfig)
     self.client = self.app.test_client()
     self.ctx = self.app.test_request_context()
     self.ctx.push()
     self.app.preprocess_request()
     self.user = (
         "{'first_name': u'Tim', 'last_name': u'Fletcher', "
         "'is_active': '1', 'email': u'*****@*****.**', 'password': "******"u'sha1$huj9heME$8653756aaed11fdbfce799d27644866efa291efd', 'id': 1L}"
     )
     self.all_items = (
         "[{'text': u'Take cat to vet', 'id': 1L, 'complete': 0, 'list_id': 1L}, "
         "{'text': u'Clean house', 'id': 2L, 'complete': 0, 'list_id': 1L}, "
         "{'text': u'Buy birthday card for sis', 'id': 3L, 'complete': 0, 'list_id': 1L}, "
         "{'text': u'Go to gym', 'id': 4L, 'complete': 0, 'list_id': 1L}, "
         "{'text': u'Take bike to shop', 'id': 5L, 'complete': 0, 'list_id': 2L}, "
         "{'text': u'Buy flowers', 'id': 6L, 'complete': 0, 'list_id': 2L}, "
         "{'text': u'Take dog out for a walk', 'id': 7L, 'complete': 0, 'list_id': 2L}, "
         "{'text': u'Fix sink', 'id': 8L, 'complete': 0, 'list_id': 2L}]"
     )
     for sql in SQL:
         for statement in process_sql(sql):
             g.db.execute(statement)
from onelist.application import create_app
from onelist.config import DevelopmentConfig

if __name__ == '__main__':
    app = create_app(DevelopmentConfig)
    # app.run()
    app.run(host='0.0.0.0')