Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdba978

Browse files
committed
update test
1 parent 9c2ab58 commit fdba978

File tree

1 file changed

+7
-37
lines changed

1 file changed

+7
-37
lines changed

plotly/tests/test_core/test_dashboard/test_dashboard.py

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -113,45 +113,15 @@ def test_dashboard_dict(self):
113113
dash = dashboard.Dashboard()
114114
dash.insert(my_box, '', 0)
115115
dash.insert(my_box, 'above', 1)
116-
dash.insert(my_box, 'left', 2)
117-
dash.insert(my_box, 'right', 2)
118-
dash.insert(my_box, 'below', 4)
119116

120117
expected_dashboard = {
121118
'layout': {'direction': 'vertical',
122119
'first': {'direction': 'vertical',
123-
'first': {'direction': 'horizontal',
124-
'first': {'direction': 'vertical',
125-
'first': {'boxType': 'plot',
126-
'fileId': 'AdamKulidjian:327',
127-
'shareKey': None,
128-
'title': 'box 1',
129-
'type': 'box'},
130-
'second': {'boxType': 'plot',
131-
'fileId': 'AdamKulidjian:327',
132-
'shareKey': None,
133-
'title': 'box 1',
134-
'type': 'box'},
135-
'size': 50,
136-
'sizeUnit': '%',
137-
'type': 'split'},
138-
'second': {'direction': 'horizontal',
139-
'first': {'boxType': 'plot',
140-
'fileId': 'AdamKulidjian:327',
141-
'shareKey': None,
142-
'title': 'box 1',
143-
'type': 'box'},
144-
'second': {'boxType': 'plot',
145-
'fileId': 'AdamKulidjian:327',
146-
'shareKey': None,
147-
'title': 'box 1',
148-
'type': 'box'},
149-
'size': 50,
150-
'sizeUnit': '%',
151-
'type': 'split'},
152-
'size': 50,
153-
'sizeUnit': '%',
154-
'type': 'split'},
120+
'first': {'boxType': 'plot',
121+
'fileId': 'AdamKulidjian:327',
122+
'shareKey': None,
123+
'title': 'box 1',
124+
'type': 'box'},
155125
'second': {'boxType': 'plot',
156126
'fileId': 'AdamKulidjian:327',
157127
'shareKey': None,
@@ -161,11 +131,11 @@ def test_dashboard_dict(self):
161131
'sizeUnit': '%',
162132
'type': 'split'},
163133
'second': {'boxType': 'empty', 'type': 'box'},
164-
'size': 1500,
134+
'size': 1000,
165135
'sizeUnit': 'px',
166136
'type': 'split'},
167137
'settings': {},
168138
'version': 2
169139
}
170140

171-
self.assertEqual(dash, expected_dashboard)
141+
self.assertEqual(dash['layout'], expected_dashboard['layout'])

0 commit comments

Comments
 (0)