Skip to content

Commit 6df366e

Browse files
committed
mv get_subplots argument checks tests to the top of file
1 parent 0d74fb3 commit 6df366e

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

plotly/tests/test_core/test_tools/test_get_subplots.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
import plotly.tools as tls
44
from nose.tools import raises
55

6+
7+
@raises(Exception)
8+
def test_non_integer_rows():
9+
fig = tls.get_subplots(rows=2.1)
10+
11+
@raises(Exception)
12+
def test_non_integer_columns():
13+
fig = tls.get_subplots(columns=2/3)
14+
15+
@raises(Exception)
16+
def test_wrong_kwarg():
17+
fig = tls.get_subplots(stuff='no gonna work')
18+
619
def test_get_single_plot():
720
expected = Figure(
821
data=Data(),
@@ -367,18 +380,6 @@ def test_spacing():
367380

368381
assert fig == expected
369382

370-
@raises(Exception)
371-
def test_non_integer_rows():
372-
fig = tls.get_subplots(rows=2.1)
373-
374-
@raises(Exception)
375-
def test_non_integer_columns():
376-
fig = tls.get_subplots(columns=2/3)
377-
378-
@raises(Exception)
379-
def test_wrong_kwarg():
380-
fig = tls.get_subplots(stuff='no gonna work')
381-
382383
def test_default_spacing():
383384
expected = Figure(
384385
data=Data(),

0 commit comments

Comments
 (0)