def _insert_queue(self, name, display_name, number='3000'): queue = QueueFeatures() queue.name = name queue.displayname = display_name queue.number = number self.add_me(queue) return queue
def test_add_queue(self): queue = QueueFeatures() name = u'àç__-\'"é' queue.name = name queue.displayname = name + 'display' queue.number = '3003' queue_dao.add_queue(queue) self.assertTrue(queue.id > 0) self.assertTrue(queue_dao.queue_name(queue.id) == name)
def _insert_queue(self, queue_id, queue_name, queue_number): queue = QueueFeatures() queue.name = queue_name queue.displayname = queue_name queue.number = queue_number self.add_me(queue) return queue
def _insert_queue(self, queue_id, queue_name, queue_number): queue = QueueFeatures() queue.tenant_uuid = self.default_tenant.uuid queue.name = queue_name queue.displayname = queue_name queue.number = queue_number self.add_me(queue) return queue
def _insert_queue(self, queue_id, name): queue = QueueFeatures() queue.id = queue_id queue.name = name queue.displayname = name queue.number = '3000' self.add_me(queue) return queue
def _insert_queue(self, name, display_name, number='3000'): queue = QueueFeatures() queue.name = name queue.displayname = display_name queue.number = number self.session.begin() self.session.add(queue) self.session.commit() return queue
def _insert_queue(self, queue_id, queue_name, queue_number): queue = QueueFeatures() queue.name = queue_name queue.displayname = queue_name queue.number = queue_number self.session.begin() self.session.add(queue) self.session.commit() return queue
def _insert_queue(self, queue_id, name): queue = QueueFeatures() queue.id = queue_id queue.name = name queue.displayname = name queue.number = '3000' self.session.begin() self.session.add(queue) self.session.commit() return queue
def recording_preriquisites(session): queue1 = QueueFeatures() queue1.id = 1 queue1.name = 'name1' queue1.displayname = 'displayname' queue2 = QueueFeatures() queue2.id = 2 queue2.name = 'name2' queue2.displayname = 'displayname' agent = AgentFeatures() agent.id = 1 agent.numgroup = 1 agent.number = '1000' agent.passwd = '1000' agent.context = 'default' agent.language = 'fr_FR' agent.description = 'my_agent' session.begin() session.add_all([queue1, queue2, agent]) session.commit()