@@ -9,8 +9,16 @@ def test_non_integer_rows():
9
9
fig = tls .make_subplots (rows = 2.1 )
10
10
11
11
@raises (Exception )
12
- def test_non_integer_columns ():
13
- fig = tls .make_subplots (columns = 2 / 3 )
12
+ def test_less_than_zero_rows ():
13
+ fig = tls .make_subplots (rows = - 2 )
14
+
15
+ @raises (Exception )
16
+ def test_non_integer_cols ():
17
+ fig = tls .make_subplots (cols = 2 / 3 )
18
+
19
+ @raises (Exception )
20
+ def test_less_than_zero_cols ():
21
+ fig = tls .make_subplots (cols = - 10 )
14
22
15
23
@raises (Exception )
16
24
def test_wrong_kwarg ():
@@ -21,16 +29,16 @@ def test_non_integer_rows():
21
29
fig = tls .make_subplots (rows = 2.1 )
22
30
23
31
@raises (Exception )
24
- def test_non_integer_columns ():
25
- fig = tls .make_subplots (columns = 2 / 3 )
32
+ def test_non_integer_cols ():
33
+ fig = tls .make_subplots (cols = 2 / 3 )
26
34
27
35
@raises (Exception )
28
36
def test_wrong_kwarg ():
29
37
fig = tls .make_subplots (stuff = 'no gonna work' )
30
38
31
39
@raises (Exception )
32
40
def test_start_cell_wrong_values ():
33
- fig = tls .make_subplots (rows = 2 , columns = 2 , start_cell = 'not gonna work' )
41
+ fig = tls .make_subplots (rows = 2 , cols = 2 , start_cell = 'not gonna work' )
34
42
35
43
@raises (Exception )
36
44
def test_specs_wrong_type ():
@@ -51,12 +59,12 @@ def test_specs_wrong_item_key():
51
59
@raises (Exception )
52
60
def test_specs_underspecified ():
53
61
fig = tls .make_subplots (rows = 2 , specs = [{}])
54
- fig = tls .make_subplots (rows = 2 , columns = 2 , specs = [[{}, {}], [{}]])
62
+ fig = tls .make_subplots (rows = 2 , cols = 2 , specs = [[{}, {}], [{}]])
55
63
56
64
@raises (Exception )
57
65
def test_specs_overspecified ():
58
66
fig = tls .make_subplots (rows = 2 , specs = [[{}], [{}], [{}]])
59
- fig = tls .make_subplots (columns = 2 , specs = [{}, {}, {}])
67
+ fig = tls .make_subplots (cols = 2 , specs = [{}, {}, {}])
60
68
61
69
@raises (Exception )
62
70
def test_specs_colspan_too_big ():
0 commit comments