Completed
Push — master ( bc3eb7...cd5a63 )
by Chris
49s
created

tests/test_layouts_freeform.py (1 issue)

1
import json
2
3
from conftest import setup_dashboard
4
5
6 View Code Duplication
def test_freeform_mode_has_no_rows_or_cols(monkeypatch, ctx, client):
0 ignored issues
show
This code seems to be duplicated in your project.
Loading history...
7
    app, test = client
8
    data = dict(
9
        mode='freeform',
10
        name='Some dashboard',
11
        module_baz=json.dumps(
12
            dict(name=1, width=400, height=112, dataSource='...')
13
        ),
14
        module_foo=json.dumps(
15
            dict(name=1, width=300, height=112, dataSource='...')
16
        ),
17
    )
18
    dom = setup_dashboard(monkeypatch, app, test, data)
19
    container = dom.find('#container')
20
    assert len(container.find('.grid-row')) == 0
21