示例#1
0
def test_get_num_rows_freeform():
    assert charts_builder.get_num_rows(dict(layout='freeform')) is None
示例#2
0
def test_get_num_rows_fixed():
    conf = dict(
        layout='grid',
        modules=[dict(row=1), dict(row=2)],
    )
    assert charts_builder.get_num_rows(conf) == 2
示例#3
0
def test_get_num_rows_none():
    assert charts_builder.get_num_rows(None) is None