File tree Expand file tree Collapse file tree
plotly/tests/test_core/test_tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import plotly .tools as tls
44from 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+
619def 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-
382383def test_default_spacing ():
383384 expected = Figure (
384385 data = Data (),
You can’t perform that action at this time.
0 commit comments