Exemplo n.º 1
0
def test_get_desc_when_receive_params():
    item = '''\nFeature:  example\n\nSmall description\n\n
        @trello-1234\n\n\n  Scenario:\n\n  Given i like to
        boogie\n\n\n'''
    expected_result = 'Small description\n\n# Scenarios\nGiven i like to \nboogie \n'
    serializer = TrelloCardSerializer()

    result = serializer.get_desc(item)

    assert result == expected_result
Exemplo n.º 2
0
def test_get_desc_when_params_is_empty():
    item = ''
    serializer = TrelloCardSerializer()

    with pytest.raises(IndexError):
        serializer.get_desc(item)