def wrapper(): app = create_app() app.config["TESTING"] = True return wrapped(app.test_client())
#!/usr/bin/env python from flask.ext.script import Manager from douwallet.app import create_app app = create_app() manager = Manager(app) if __name__ == "__main__": manager.run()