def app_client(): app = create_app(test=True) with app.app_context(): with app.test_client() as client: yield client cleanup()
from buildyourownbotnet import create_app if __name__ == '__main__': app = create_app(test=False) app.run(host='0.0.0.0', port=5000)