def make_database():
    r = RedisManager()
    r.delete_all()
    list = json.dumps({"A": "a", "B": ["b", "c"]})
    list2 = json.dumps({"D": "d", "E": ["e", "f"]})
    list3 = json.dumps({"G": "g", "H": ["h", "i"]})
    r.add_to_queue(list)
    r.add_to_queue(list2)
    r.add_to_progress(list3)
    return r
Beispiel #2
0
def make_database(reset, lock):
    r = RedisManager(fakeredis.FakeRedis())
    r.delete_all()
    list = json.dumps({"A":"a", "B":["b", "c"]})
    list2 = json.dumps({"D":"d", "E":["e", "f"]})
    list3 = json.dumps({"G":"g", "H":["h", "i"]})
    r.add_to_queue(list)
    r.add_to_queue(list2)
    r.add_to_queue(list3)
    return r
Beispiel #3
0
def make_database(reset, lock):
    r = RedisManager()
    r.delete_all()
    return r
Beispiel #4
0
def make_database(reset, lock):
    r = RedisManager(fakeredis.FakeRedis())
    r.delete_all()
    return r