コード例 #1
0
def test_get_id_item_when_description_not_exits():
    feature = ['Feature:  yeah', '@trello-1234']
    serializer = TrelloCardSerializer()

    result = serializer.get_id_item(feature)

    assert result == '@trello-1234'
コード例 #2
0
def test_get_id_item_when_param_is_empty():
    feature = []
    serializer = TrelloCardSerializer()

    with pytest.raises(IndexError):
        serializer.get_id_item(feature)