File diff 44946a061df4 → 17c5468a7d47
tests/test_reports_spreadsheet.py
Show inline comments
...
 
@@ -511,13 +511,13 @@ def test_ods_writer_multilink_singleton(ods_writer, cell_source, style_name):
 
    try:
 
        href, text = cell_source
 
    except ValueError:
 
        href = cell_source
 
        text = None
 
    anchor = get_child(cell, odf.text.A, type='simple', href=href)
 
    assert get_text(anchor) == (text or '')
 
    assert get_text(anchor) == (text or href)
 

	
 
def test_ods_writer_multilink_cell(ods_writer):
 
    cell = ods_writer.multilink_cell(iter(LINK_CELL_DATA))
 
    assert cell.getAttribute('valuetype') == 'string'
 
    children = get_children(cell, odf.text.A)
 
    for source, child in itertools.zip_longest(LINK_CELL_DATA, children):
...
 
@@ -525,13 +525,13 @@ def test_ods_writer_multilink_cell(ods_writer):
 
            href, text = source
 
        except ValueError:
 
            href = source
 
            text = None
 
        assert child.getAttribute('type') == 'simple'
 
        assert child.getAttribute('href') == href
 
        assert get_text(child) == (text or '')
 
        assert get_text(child) == (text or href)
 

	
 
@pytest.mark.parametrize('cell_source,style_name', testutil.combine_values(
 
    STRING_CELL_DATA,
 
    XML_NAMES,
 
))
 
def test_ods_writer_string_cell(ods_writer, cell_source, style_name):