File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
plotly/tests/test_optional Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -2124,11 +2124,18 @@ def test_valid_facet_grid_fig(self):
2124
2124
'ticklen' : 0 ,
2125
2125
'zeroline' : False }}}
2126
2126
2127
- self .assert_dict_equal (test_facet_grid ['data' ][0 ],
2128
- exp_facet_grid ['data' ][0 ])
2129
-
2130
- self .assert_dict_equal (test_facet_grid ['data' ][1 ],
2131
- exp_facet_grid ['data' ][1 ])
2132
-
2127
+ # data
2128
+ data_keys = test_facet_grid ['data' ][0 ].keys ()
2129
+
2130
+ for j in range (len (test_facet_grid ['data' ])):
2131
+ for key in data_keys :
2132
+ if key != 'x' and key != 'y' :
2133
+ self .assertEqual (test_facet_grid ['data' ][j ][key ],
2134
+ exp_facet_grid ['data' ][j ][key ])
2135
+ else :
2136
+ self .assertEqual (list (test_facet_grid ['data' ][j ][key ]),
2137
+ list (exp_facet_grid ['data' ][j ][key ]))
2138
+
2139
+ # layout
2133
2140
self .assert_dict_equal (test_facet_grid ['layout' ],
2134
2141
exp_facet_grid ['layout' ])
You can’t perform that action at this time.
0 commit comments