예제 #1
0
 def test_can_serialize_calculated_fields(self):
     story = AgiloTicket(self.env, t_type=Type.USER_STORY)
     task = AgiloTicket(self.env, t_type=Type.TASK)
     task[Key.REMAINING_TIME] = '5'
     story.link_to(task)
     story.insert()
     self.assert_equals(5, story.as_dict()[Key.TOTAL_REMAINING_TIME])
예제 #2
0
 def test_can_serialize_calculated_fields(self):
     story = AgiloTicket(self.env, t_type=Type.USER_STORY)
     task = AgiloTicket(self.env, t_type=Type.TASK)
     task[Key.REMAINING_TIME] = '5'
     story.link_to(task)
     story.insert()
     self.assert_equals(5, story.as_dict()[Key.TOTAL_REMAINING_TIME])
예제 #3
0
 def test_can_serialize_links(self):
     task = AgiloTicket(self.env, t_type=Type.TASK)
     task.insert()
     story = AgiloTicket(self.env, t_type=Type.USER_STORY)
     story.link_to(task)
     story.insert()
     self.assert_equals([task.id], story.as_dict()['outgoing_links'])
     self.assert_equals([story.id], task.as_dict()['incoming_links'])
예제 #4
0
 def test_can_serialize_links(self):
     task = AgiloTicket(self.env, t_type=Type.TASK)
     task.insert()
     story = AgiloTicket(self.env, t_type=Type.USER_STORY)
     story.link_to(task)
     story.insert()
     self.assert_equals([task.id], story.as_dict()['outgoing_links'])
     self.assert_equals([story.id], task.as_dict()['incoming_links'])