#NEWLINE# def setup( ) : #NEWLINE# #INDENT# app = Flask ( __name__ ) #NEWLINE# app . config [ 'SECRET_KEY' ] = '1' #NEWLINE# app . config [ 'CSRF_ENABLED' ] = False #NEWLINE# app . config [ 'MONGODB_SETTINGS' ] = { #NEWLINE# #INDENT# 'DB' : 'tests' , #NEWLINE# #UNINDENT# } #NEWLINE# db = MongoEngine ( ) #NEWLINE# db . init_app ( app ) #NEWLINE# admin = Admin ( app ) #NEWLINE# return ( app , db , app )