Beispiel #1
0
def test_get_resolve_transition_id_error(mock_transitions):
  mock_transitions.return_value = BAD_TRANSITIONS
  jira = Jira("test")
  with pytest.raises(JiraError):
    jira._get_resolve_transition_id('test-7')
Beispiel #2
0
def test_get_resolve_transition_id_error(mock_transitions):
    mock_transitions.return_value = BAD_TRANSITIONS
    jira = Jira("test")
    with pytest.raises(JiraError):
        jira._get_resolve_transition_id('test-7')
Beispiel #3
0
def test_get_resolve_transition_id(mock_transitions):
  mock_transitions.return_value = GOOD_TRANSITIONS
  jira = Jira("test")
  assert jira._get_resolve_transition_id('test-7') == 2
Beispiel #4
0
def test_get_resolve_transition_id(mock_transitions):
    mock_transitions.return_value = GOOD_TRANSITIONS
    jira = Jira("test")
    assert jira._get_resolve_transition_id('test-7') == 2