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()
from get5 import db if __name__ == '__main__': db.drop_all() db.create_all()
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()