@@ -14,13 +14,13 @@ class TestBoundingBox:
1414
1515 @pytest .mark .input_validation
1616 @pytest .mark .parametrize (
17- [ 'x_bounds' , 'y_bounds' ] ,
17+ ( 'x_bounds' , 'y_bounds' ) ,
1818 [
19- [ None , None ] ,
20- [[ 0 , 1 ], None ] ,
21- [ None , [0 , 1 ]] ,
22- [ Interval ([0 , 1 ]), None ] ,
23- [ None , Interval ([0 , 1 ])] ,
19+ ( None , None ) ,
20+ ([ 0 , 1 ], None ) ,
21+ ( None , [0 , 1 ]) ,
22+ ( Interval ([0 , 1 ]), None ) ,
23+ ( None , Interval ([0 , 1 ])) ,
2424 ],
2525 ids = [
2626 'neither' ,
@@ -43,16 +43,16 @@ def test_input_validation_inclusive(self, inclusive):
4343 _ = BoundingBox ([0 , 1 ], [0 , 1 ], inclusive )
4444
4545 @pytest .mark .parametrize (
46- [ 'x_bounds' , 'y_bounds' , 'inclusive' , 'expected' ] ,
46+ ( 'x_bounds' , 'y_bounds' , 'inclusive' , 'expected' ) ,
4747 [
48- [[ 0 , 1 ], [0 , 1 ], True , (True , True )] ,
49- [[ 0 , 1 ], [0 , 1 ], False , (False , False )] ,
50- [ Interval ([0 , 1 ], True ), Interval ([0 , 1 ], True ), True , (True , True )] ,
51- [ Interval ([0 , 1 ], True ), Interval ([0 , 1 ], True ), False , (True , True )] ,
52- [ Interval ([0 , 1 ], True ), [0 , 1 ], True , (True , True )] ,
53- [[ 0 , 1 ], Interval ([0 , 1 ], True ), True , (True , True )] ,
54- [ Interval ([0 , 1 ], True ), [0 , 1 ], False , (True , False )] ,
55- [[ 0 , 1 ], Interval ([0 , 1 ], True ), False , (False , True )] ,
48+ ([ 0 , 1 ], [0 , 1 ], True , (True , True )) ,
49+ ([ 0 , 1 ], [0 , 1 ], False , (False , False )) ,
50+ ( Interval ([0 , 1 ], True ), Interval ([0 , 1 ], True ), True , (True , True )) ,
51+ ( Interval ([0 , 1 ], True ), Interval ([0 , 1 ], True ), False , (True , True )) ,
52+ ( Interval ([0 , 1 ], True ), [0 , 1 ], True , (True , True )) ,
53+ ([ 0 , 1 ], Interval ([0 , 1 ], True ), True , (True , True )) ,
54+ ( Interval ([0 , 1 ], True ), [0 , 1 ], False , (True , False )) ,
55+ ([ 0 , 1 ], Interval ([0 , 1 ], True ), False , (False , True )) ,
5656 ],
5757 )
5858 def test_init (self , x_bounds , y_bounds , inclusive , expected ):
@@ -74,12 +74,12 @@ def test_init(self, x_bounds, y_bounds, inclusive, expected):
7474 assert bbox .y_bounds != y_bounds
7575
7676 @pytest .mark .parametrize (
77- [ 'value' , 'inclusive' , 'expected' ] ,
77+ ( 'value' , 'inclusive' , 'expected' ) ,
7878 [
79- [[ 1 , 1 ], True , True ] ,
80- [[ 1 , 1 ], False , True ] ,
81- [[ 0 , 0 ], True , True ] ,
82- [[ 0 , 0 ], False , False ] ,
79+ ([ 1 , 1 ], True , True ) ,
80+ ([ 1 , 1 ], False , True ) ,
81+ ([ 0 , 0 ], True , True ) ,
82+ ([ 0 , 0 ], False , False ) ,
8383 ],
8484 ids = [
8585 'inside box - inclusive' ,
@@ -137,13 +137,13 @@ def test_repr(self):
137137
138138 @pytest .mark .input_validation
139139 @pytest .mark .parametrize (
140- [ 'x' , 'y' ] ,
140+ ( 'x' , 'y' ) ,
141141 [
142- [ True , True ] ,
143- [ None , True ] ,
144- [ 's' , None ] ,
145- [ None , 's' ] ,
146- [ 's' , 's' ] ,
142+ ( True , True ) ,
143+ ( None , True ) ,
144+ ( 's' , None ) ,
145+ ( None , 's' ) ,
146+ ( 's' , 's' ) ,
147147 ],
148148 )
149149 def test_adjust_bounds_input_validation (self , x , y ):
@@ -152,7 +152,7 @@ def test_adjust_bounds_input_validation(self, x, y):
152152 with pytest .raises (TypeError , match = 'value must be a numeric value' ):
153153 bbox .adjust_bounds (x , y )
154154
155- @pytest .mark .parametrize ([ 'x' , 'y' ] , [[ 10 , 10 ], [ 0 , 10 ], [ 10 , 0 ] ])
155+ @pytest .mark .parametrize (( 'x' , 'y' ) , [( 10 , 10 ), ( 0 , 10 ), ( 10 , 0 ) ])
156156 def test_adjust_bounds (self , x , y ):
157157 """Test that the adjust_bounds() method is working."""
158158 start = [10 , 90 ]
@@ -165,7 +165,7 @@ def test_adjust_bounds(self, x, y):
165165 assert new_range_y == initial_range_y + y
166166
167167 @pytest .mark .parametrize (
168- [ 'x' , 'y' ] ,
168+ ( 'x' , 'y' ) ,
169169 [
170170 ([10 , 90 ], [500 , 600 ]),
171171 ([500 , 600 ], [10 , 90 ]),
@@ -188,7 +188,7 @@ def test_clone(self):
188188 assert bbox1 != bbox2
189189
190190 @pytest .mark .parametrize (
191- [ 'x' , 'y' , 'expected' ] ,
191+ ( 'x' , 'y' , 'expected' ) ,
192192 [
193193 ([10 , 90 ], [500 , 600 ], 0.8 ),
194194 ([500 , 600 ], [10 , 90 ], 1.25 ),
0 commit comments