Skip to content

Commit afd45a1

Browse files
committed
Redo test
1 parent bfbe24c commit afd45a1

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,14 +1292,10 @@ def test_df_dataframe_all_args(self):
12921292
'data': [{'marker': {'color': 'white'},
12931293
'name': '',
12941294
'x': ['2009-01-01', '2009-02-30'],
1295-
'y': [0, 0]},
1296-
{'marker': {'color': 'white'},
1297-
'name': '',
1298-
'x': ['2009-03-05', '2009-04-15'],
1299-
'y': [1, 1]}],
1295+
'y': [0, 0]}],
13001296
'layout': {'height': 600,
13011297
'hovermode': 'closest',
1302-
'shapes': [{'fillcolor': 'rgb(5.0, 10.0, 172.0)',
1298+
'shapes': [{'fillcolor': 'rgb(31.0, 119.0, 180.0)',
13031299
'line': {'width': 0},
13041300
'opacity': 1,
13051301
'type': 'rect',
@@ -1308,16 +1304,6 @@ def test_df_dataframe_all_args(self):
13081304
'xref': 'x',
13091305
'y0': -0.2,
13101306
'y1': 0.2,
1311-
'yref': 'y'},
1312-
{'fillcolor': 'rgb(220.0, 220.0, 220.0)',
1313-
'line': {'width': 0},
1314-
'opacity': 1,
1315-
'type': 'rect',
1316-
'x0': '2009-03-05',
1317-
'x1': '2009-04-15',
1318-
'xref': 'x',
1319-
'y0': 0.8,
1320-
'y1': 1.2,
13211307
'yref': 'y'}],
13221308
'showlegend': False,
13231309
'title': 'Gantt Chart',
@@ -1335,11 +1321,12 @@ def test_df_dataframe_all_args(self):
13351321
'type': 'date',
13361322
'zeroline': False},
13371323
'yaxis': {'autorange': False,
1338-
'range': [-1, 3],
1324+
'range': [-1, 2],
13391325
'showgrid': False,
1340-
'ticktext': ['Job A', 'Job B'],
1341-
'tickvals': [0, 1],
1326+
'ticktext': ['Job A'],
1327+
'tickvals': [0],
13421328
'zeroline': False}}
1329+
13431330
}
13441331

13451332
self.assertEqual(test_gantt_chart['data'][0],
@@ -1354,8 +1341,8 @@ def test_df_dataframe_all_args(self):
13541341
#self.assert_dict_equal(test_gantt_chart['layout']['shapes'][1],
13551342
# exp_gantt_chart['layout']['shapes'][1])
13561343

1357-
#self.assert_dict_equal(test_gantt_chart['layout'],
1358-
# exp_gantt_chart['layout'])
1344+
self.assert_dict_equal(test_gantt_chart['layout'],
1345+
exp_gantt_chart['layout'])
13591346

13601347

13611348
class TestViolin(NumpyTestUtilsMixin, TestCase):

0 commit comments

Comments
 (0)