#NEWLINE# def pytest_funcarg__datastore( request ) : #NEWLINE# #INDENT# 'Prepare a configuration parser object' #NEWLINE# cfg = ConfigParser ( ) #NEWLINE# cfg . add_section ( C . DATASTORE ) #NEWLINE# for k in [ C . CHANGESETS_INLINE_SIZE , C . NODES_INLINE_SIZE , C . RELATIONS_INLINE_SIZE , C . WAYS_INLINE_SIZE ] : #NEWLINE# #INDENT# cfg . set ( C . DATASTORE , k , str ( __INLINE_SIZE ) ) #NEWLINE# #UNINDENT# for k in [ C . CHANGESETS_PER_SLAB , C . NODES_PER_SLAB , C . RELATIONS_PER_SLAB , C . WAYS_PER_SLAB ] : #NEWLINE# #INDENT# cfg . set ( C . DATASTORE , k , str ( __PER_SLAB ) ) #NEWLINE# #UNINDENT# cfg . set ( C . DATASTORE , C . DATASTORE_ENCODING , 'json' ) #NEWLINE# cfg . add_section ( C . MEMBASE ) #NEWLINE# cfg . set ( C . MEMBASE , C . DBHOST , __DBHOST ) #NEWLINE# cfg . set ( C . MEMBASE , C . DBPORT , __DBPORT ) #NEWLINE# cfg . set ( C . DATASTORE , C . SLAB_LRU_SIZE , str ( __SLAB_LRU_SIZE ) ) #NEWLINE# cfg . set ( C . DATASTORE , C . SLAB_LRU_THREADS , str ( __SLAB_LRU_THREADS ) ) #NEWLINE# slabutil_init ( k ) #NEWLINE# return Datastore ( cfg )