#NEWLINE# @ pytest . fixture ( scope = 'module' ) #NEWLINE# def conn( mongo_host_port ) : #NEWLINE# #INDENT# ( host , port ) = mongo_host_port #NEWLINE# try : #NEWLINE# #INDENT# return pymongo . MongoClient ( host = host , port = port ) #NEWLINE# #UNINDENT# except pymongo . errors . ConnectionFailure : #NEWLINE# #INDENT# pytest . skip ( 'No mongo server running' )