~dpb/lp2kanban/filter-bugs-correct-movement

« back to all changes in this revision

Viewing changes to src/lp2kanban/tests/test_bugs2cards.py

  • Committer: David Britton
  • Date: 2016-08-26 04:17:07 UTC
  • Revision ID: dpb@canonical.com-20160826041707-m6jvi9jahb1d2zji
tests fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
713
713
            CardStatus.CODING,
714
714
            get_card_status('In Progress', [], branch_info))
715
715
 
716
 
    def test_get_card_status_deploy_fix_committed_no_branch(self):
 
716
    def test_get_card_status_fix_committed_no_branch(self):
717
717
        # For a bug in 'Fix Committed' status, it is considered to be in the
718
 
        # deploy phase when there is no branch linked as the bug is considered
719
 
        # fixed with a trivial.
 
718
        # landed phase if no branch is attached.
720
719
        branch_info = Record(status=None, target=None)
721
720
        self.assertEqual(
722
 
            CardStatus.DEPLOY,
 
721
            CardStatus.LANDING,
723
722
            get_card_status('Fix Committed', [], branch_info))
724
723
 
725
724
    def test_get_card_status_coding_branch(self):
767
766
 
768
767
    def test_get_card_status_deploy(self):
769
768
        # For a bug in the 'Fix Committed' status, it is
770
 
        # considered to be in the deploy phase if there is a branch
 
769
        # considered to be in the landing phase if there is a branch
771
770
        # that has been merged and the bug has no 'qa-needstesting' tag,
772
771
        # and the branch target is 'devel'
773
 
        #import ipdb; ipdb.set_trace()
774
772
        branch_info = Record(status='Merged', target='devel')
775
773
        self.assertEqual(
776
 
            CardStatus.DEPLOY,
 
774
            CardStatus.LANDING,
777
775
            get_card_status('Fix Committed', [], branch_info))
778
776
 
779
777
        # If the bug is still 'In Progress', it is still in the coding phase.