def pytest_funcarg__datastore(request):

    cfg = ConfigParser()
    cfg.add_section(C.DATASTORE)

    for k in [C.CHANGESETS_INLINE_SIZE, C.NODES_INLINE_SIZE,
              C.RELATIONS_INLINE_SIZE, C.WAYS_INLINE_SIZE]:
        cfg.set(C.DATASTORE, k, str(__INLINE_SIZE))

    for k in [C.CHANGESETS_PER_SLAB, C.NODES_PER_SLAB,
              C.RELATIONS_PER_SLAB, C.WAYS_PER_SLAB]:
        cfg.set(C.DATASTORE, k, str(__PER_SLAB))

    cfg.set(C.DATASTORE, C.DATASTORE_ENCODING, 'json')

    cfg.add_section(C.MEMBASE)
    cfg.set(C.MEMBASE, C.DBHOST, __DBHOST)
    cfg.set(C.MEMBASE, C.DBPORT, __DBPORT)
    cfg.set(C.DATASTORE, C.SLAB_LRU_SIZE, str(__SLAB_LRU_SIZE))
    cfg.set(C.DATASTORE, C.SLAB_LRU_THREADS, str(__SLAB_LRU_THREADS))

    slabutil_init(cfg)

    return Datastore(cfg)
Prepare a configuration parser object
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/tests/test_dsmembase.py/pytest_funcarg__datastore