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')
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