def setUp(self): from scratch_pad import scratch_pad from db_store import db self.database = db() self.scratch = scratch_pad() self.database.set_scratch_pad(self.scratch)
def __init__(self): self.db_object = db() self.top_questions = list() self.top_questions_asked = list() self.question = question_interface() self.last_question_asked_tag = None self.question_flag = 0 self.call_db() self.hunger = 10 pass
def __init__(self): # dict to store active objects and map them to users self.object_list = dict() # redis db connection object for the conversation. Pass this to whatever # class needs a connection to the db. self.db_connection = db()