@@ -113,45 +113,15 @@ def test_dashboard_dict(self):
113
113
dash = dashboard .Dashboard ()
114
114
dash .insert (my_box , '' , 0 )
115
115
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 )
119
116
120
117
expected_dashboard = {
121
118
'layout' : {'direction' : 'vertical' ,
122
119
'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' },
155
125
'second' : {'boxType' : 'plot' ,
156
126
'fileId' : 'AdamKulidjian:327' ,
157
127
'shareKey' : None ,
@@ -161,11 +131,11 @@ def test_dashboard_dict(self):
161
131
'sizeUnit' : '%' ,
162
132
'type' : 'split' },
163
133
'second' : {'boxType' : 'empty' , 'type' : 'box' },
164
- 'size' : 1500 ,
134
+ 'size' : 1000 ,
165
135
'sizeUnit' : 'px' ,
166
136
'type' : 'split' },
167
137
'settings' : {},
168
138
'version' : 2
169
139
}
170
140
171
- self .assertEqual (dash , expected_dashboard )
141
+ self .assertEqual (dash [ 'layout' ] , expected_dashboard [ 'layout' ] )
0 commit comments