#NEWLINE# def setup( test = False , plugins = None , curConfig = None ) : #NEWLINE# #INDENT# "\n    Configure and mount the Girder server under '/'.\n\n    :param test: Whether to start in test mode.\n    :param plugins: List of plugins to enable.\n    :param curConfig: The config object to update.\n    " #NEWLINE# ( root , appconf ) = configureServer ( test , plugins , curConfig ) #NEWLINE# application = cherrypy . tree . mount ( test , '/' , appconf ) #NEWLINE# if test : #NEWLINE# #INDENT# application . merge ( { #NEWLINE# #INDENT# 'server' : { #NEWLINE# #INDENT# 'mode' : 'testing' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return application