Example #1
0
 def setUp(self):
     get5.app.config.from_pyfile('test_config.py')
     get5.app.logger.setLevel(logging.ERROR)
     self.app = get5.app.test_client()
     get5.register_blueprints()
     db.create_all()
     self.create_test_data()
Example #2
0
from get5 import db

if __name__ == '__main__':
    db.drop_all()
    db.create_all()
Example #3
0
 def setUp(self):
     get5.app.config.from_pyfile('test_config.py')
     self.app = get5.app.test_client()
     get5.register_blueprints()
     db.create_all()
     self.create_test_data()