예제 #1
0
 def test_confirm_commitment_uses_current_remaining_time(self):
     self.sprint.start = now() - timedelta(hours=2)
     self.sprint.save()
     task_properties = {Key.REMAINING_TIME: '7', Key.SPRINT: self.sprint.name}
     self.teh.create_ticket(Type.TASK, props=task_properties)
     
     commitment = TeamController.confirm_commitment_for_sprint(self.env, self.sprint)
     self.assert_equals(7, commitment)
예제 #2
0
    def test_confirm_commitment_uses_current_remaining_time(self):
        self.sprint.start = now() - timedelta(hours=2)
        self.sprint.save()
        task_properties = {
            Key.REMAINING_TIME: '7',
            Key.SPRINT: self.sprint.name
        }
        self.teh.create_ticket(Type.TASK, props=task_properties)

        commitment = TeamController.confirm_commitment_for_sprint(
            self.env, self.sprint)
        self.assert_equals(7, commitment)
예제 #3
0
 def test_confirm_commitment_can_cope_with_float_story_points(self):
     self.allowZeroDotFiveStoryPoints()
     self.s1[Key.STORY_POINTS] = '0.5'
     self.s1.save_changes('', '')
     TeamController.confirm_commitment_for_sprint(self.env, self.sprint)
예제 #4
0
 def test_confirm_commitment_can_cope_with_float_story_points(self):
     self.allowZeroDotFiveStoryPoints()
     self.s1[Key.STORY_POINTS] = '0.5'
     self.s1.save_changes('', '')
     TeamController.confirm_commitment_for_sprint(self.env, self.sprint)