~cjohnston/uci-engine/1318774

« back to all changes in this revision

Viewing changes to cli/ci_cli/tests/test_cli.py

  • Committer: Ubuntu CI Bot
  • Author(s): Andy Doan
  • Date: 2014-05-12 15:49:28 UTC
  • mfrom: (466.2.4 ts-model)
  • Revision ID: ubuntu_ci_bot-20140512154928-ng6cll5viw6ylgji
[r=PS Jenkins bot, Chris Johnston] ticket-api: simplify status values

Simplifies the TicketWorkflowStepStatus values to be consistent
and let the user infer the workflow-step using the "current_workflow_step"
attribute of a ticket.  from Andy Doan

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        """Verify cli status command when providing ticket number."""
48
48
        data = {
49
49
            "current_workflow_step": str(TicketWorkflowStep.IMAGE_BUILDING),
50
 
            "status": str(TicketWorkflowStepStatus.IMAGE_BUILDING_INPROGRESS),
 
50
            "status": str(TicketWorkflowStepStatus.INPROGRESS),
51
51
            "title": "My cool feature",
52
52
            "id": '5',
53
53
            "description": "my new feature",
75
75
                'Added binaries: mynewpackage\n'
76
76
                'Removed binaries: myoldpackage\n'.format(
77
77
                    str(TicketWorkflowStep.IMAGE_BUILDING),
78
 
                    str(TicketWorkflowStepStatus.IMAGE_BUILDING_INPROGRESS)))
 
78
                    str(TicketWorkflowStepStatus.INPROGRESS)))
79
79
        mock_urlopen.assert_called_once()
80
80
 
81
81
    @mock.patch('urllib2.urlopen')