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'
def test_get_id_item_when_param_is_empty(): feature = [] serializer = TrelloCardSerializer() with pytest.raises(IndexError): serializer.get_id_item(feature)