From c5a324c3960379b18c02d62c5eb49f4348571632 Mon Sep 17 00:00:00 2001 From: Omri Danan Date: Tue, 14 Aug 2018 17:01:11 +0300 Subject: [PATCH] Fix gantt colorbar tests --- .../test_tools/test_figure_factory.py | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/plotly/tests/test_optional/test_tools/test_figure_factory.py b/plotly/tests/test_optional/test_tools/test_figure_factory.py index 0ad6ffc7fca..11827b41317 100644 --- a/plotly/tests/test_optional/test_tools/test_figure_factory.py +++ b/plotly/tests/test_optional/test_tools/test_figure_factory.py @@ -1349,7 +1349,25 @@ def test_gannt_groups_and_descriptions(self): ) exp_gantt_chart = { - 'data': [{'marker': {'color': 'white'}, + 'data': [{'hoverinfo': 'none', + 'marker': {'color': 'rgb(220, 0, 0)', 'size': 1}, + 'name': 'TA', + 'showlegend': True, + 'x': ['2009-04-20', '2009-04-20'], + 'y': [0, 0]}, + {'hoverinfo': 'none', + 'marker': {'color': 'rgb(170, 14, 200)', 'size': 1}, + 'name': 'TB', + 'showlegend': True, + 'x': ['2009-04-20', '2009-04-20'], + 'y': [1, 1]}, + {'hoverinfo': 'none', + 'marker': {'color': 'rgb(255, 230, 41)', 'size': 1}, + 'name': 'TC', + 'showlegend': True, + 'x': ['2009-04-20', '2009-04-20'], + 'y': [2, 2]}, + {'marker': {'color': 'white'}, 'name': '', 'text': 'Task A - 1', 'x': ['2008-10-05', '2009-04-15'], @@ -1373,24 +1391,6 @@ def test_gannt_groups_and_descriptions(self): 'name': '', 'text': 'Task A - 2', 'x': ['2009-04-20', '2009-05-30'], - 'y': [2, 2]}, - {'hoverinfo': 'none', - 'marker': {'color': 'rgb(220, 0, 0)', 'size': 1}, - 'name': 'TA', - 'showlegend': True, - 'x': ['2009-04-20', '2009-04-20'], - 'y': [0, 0]}, - {'hoverinfo': 'none', - 'marker': {'color': 'rgb(170, 14, 200)', 'size': 1}, - 'name': 'TB', - 'showlegend': True, - 'x': ['2009-04-20', '2009-04-20'], - 'y': [1, 1]}, - {'hoverinfo': 'none', - 'marker': {'color': 'rgb(255, 230, 41)', 'size': 1}, - 'name': 'TC', - 'showlegend': True, - 'x': ['2009-04-20', '2009-04-20'], 'y': [2, 2]}], 'layout': {'height': 600, 'hovermode': 'closest',