def test_scriptinfo(test_apps):
 obj = ScriptInfo(app_import_path='cliapp.app:testapp')
 assert (obj.load_app().name == 'testapp')
 assert (obj.load_app().name == 'testapp')
 def create_app(info):
  return Flask('createapp')
 obj = ScriptInfo(create_app=create_app)
 app = obj.load_app()
 assert (app.name == 'createapp')
 assert (obj.load_app() == app)

def test_scriptinfo ( test_apps ) : obj = ScriptInfo ( app_import_path = 'cliapp.app:testapp' ) assert ( obj . load_app ( ) . name == 'testapp' ) assert ( obj . load_app ( ) . name == 'testapp' ) def create_app ( info ) : return Flask ( 'createapp' ) obj = ScriptInfo ( create_app = create_app ) app = obj . load_app ( ) assert ( app . name == 'createapp' ) assert ( obj . load_app ( ) == app )
test of scriptinfo .