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

Skip to content

Commit f700c92

Browse files
committed
Added test
1 parent fb39dfe commit f700c92

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,6 +1999,15 @@ def test_valid_color_dict(self):
19991999
data, 'a', 'b', color_name='a',
20002000
colormap=color_dict)
20012001

2002+
2003+
def test_valid_index(self):
2004+
data = pd.DataFrame([[2, 3, 4], [4, 5, 6]],
2005+
columns=['a', 'b', 'c'])
2006+
2007+
self.assertRaises(KeyError, ff.create_facet_grid, data, 'a', 'b',
2008+
color_name='c')
2009+
2010+
20022011
def test_valid_colorscale_name(self):
20032012
data = pd.DataFrame([[0, 1, 2], [3, 4, 5]],
20042013
columns=['a', 'b', 'c'])

0 commit comments

Comments
 (0)