Example #1
0
def test_load_layout_full():
    layout_text = '{"test": true},\n["a", "b", "c", "d"],\n["e", "f", "g", "h"]'
    result = load_layout(layout_text)
    assert result == [{'test': True}, ['a', 'b', 'c', 'd'], ['e', 'f', 'g', 'h']]
Example #2
0
def test_load_layout_full():
    layout_text = '{"test": true},\n["a", "b", "c", "d"],\n["e", "f", "g", "h"]'
    result = load_layout(layout_text)
    assert result == [{
        'test': True
    }, ['a', 'b', 'c', 'd'], ['e', 'f', 'g', 'h']]
Example #3
0
def test_load_layout_basic():
    layout_text = '["a", "b", "c", "d"]'
    result = load_layout(layout_text)
    assert result == [{}, ['a', 'b', 'c', 'd']]
Example #4
0
def test_load_layout_basic():
    layout_text = '["a", "b", "c", "d"]'
    result = load_layout(layout_text)
    assert result == [{}, ['a', 'b', 'c', 'd']]