Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f700c92

Browse filesBrowse files
committed
Added test
1 parent fb39dfe commit f700c92
Copy full SHA for f700c92

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎plotly/tests/test_optional/test_figure_factory.py

Copy file name to clipboardExpand all lines: plotly/tests/test_optional/test_figure_factory.py
+9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.