Skip to content

Commit 0f75a2d

Browse files
committed
add tests for prev commit
1 parent bfa69ce commit 0f75a2d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

plotly/tests/test_core/test_tools/test_make_subplots.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,21 @@ def test_specs_rowspan_too_big():
7171
[{'rowspan': 2}]])
7272

7373
@raises(Exception)
74-
def test_subplot_insets_wrong_type():
74+
def test_insets_wrong_type():
7575
fig = tls.make_subplots(insets="not going to work")
7676

7777
@raises(Exception)
78-
def test_subplot_insets_wrong_item():
78+
def test_insets_wrong_item():
7979
fig = tls.make_subplots(insets=[{'not': "going to work"}])
8080

81+
@raises(Exception)
82+
def test_insets_wrong_cell_row():
83+
fig = tls.make_subplots(insets=([{'cell': (0, 1)}]))
84+
85+
@raises(Exception)
86+
def test_insets_wrong_cell_col():
87+
fig = tls.make_subplots(insets=([{'cell': (1, 0)}]))
88+
8189
def test_get_single_plot():
8290
expected = Figure(
8391
data=Data(),

0 commit comments

Comments
 (0)