Esempio n. 1
0
def test_cell_style():
    table = Table((0, 0), 10, 10)
    style = table.new_cell_style('extra', textcolor=199)
    style = table.get_cell_style('extra')
    assert style['textcolor'] == 199
    with pytest.raises(KeyError):
        table.get_cell_style('extraextra')
Esempio n. 2
0
def test_cell_style():
    table = Table((0, 0), 10, 10)
    style = table.new_cell_style("extra", textcolor=199)
    style = table.get_cell_style("extra")
    assert style["textcolor"] == 199
    with pytest.raises(KeyError):
        table.get_cell_style("extraextra")