@@ -75,13 +75,13 @@ def expected_result(col1_null, col2_null, expected):
7575 return [(col1 , col2 )]
7676
7777
78- test_nulls = lambda : mark .parametrize (
78+ null_test_parameters = lambda : mark .parametrize (
7979 ['col1_null' , 'col2_null' ], [(False , True ), (True , False ), (True , True ), (False , False )]
8080)
8181
8282
8383class TestArrowOffsets (object ):
84- @test_nulls ()
84+ @null_test_parameters ()
8585 def test_struct_of_strings (self , duckdb_cursor , col1_null , col2_null ):
8686 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
8787 if col1_null :
@@ -105,7 +105,7 @@ def test_struct_of_strings(self, duckdb_cursor, col1_null, col2_null):
105105 ).fetchall ()
106106 assert res == expected_result (col1_null , col2_null , '131072' )
107107
108- @test_nulls ()
108+ @null_test_parameters ()
109109 def test_struct_of_bools (self , duckdb_cursor , col1_null , col2_null ):
110110 tuples = [False for i in range (0 , MAGIC_ARRAY_SIZE )]
111111 tuples [- 1 ] = True
@@ -138,7 +138,7 @@ def test_struct_of_bools(self, duckdb_cursor, col1_null, col2_null):
138138 (pa_date64 (), datetime .date (1970 , 1 , 1 )),
139139 ],
140140 )
141- @test_nulls ()
141+ @null_test_parameters ()
142142 def test_struct_of_dates (self , duckdb_cursor , constructor , expected , col1_null , col2_null ):
143143 tuples = [i for i in range (0 , MAGIC_ARRAY_SIZE )]
144144
@@ -163,7 +163,7 @@ def test_struct_of_dates(self, duckdb_cursor, constructor, expected, col1_null,
163163 ).fetchall ()
164164 assert res == expected_result (col1_null , col2_null , expected )
165165
166- @test_nulls ()
166+ @null_test_parameters ()
167167 def test_struct_of_enum (self , duckdb_cursor , col1_null , col2_null ):
168168 enum_type = pa .dictionary (pa .int64 (), pa .utf8 ())
169169
@@ -190,7 +190,7 @@ def test_struct_of_enum(self, duckdb_cursor, col1_null, col2_null):
190190 ).fetchall ()
191191 assert res == expected_result (col1_null , col2_null , 'green' )
192192
193- @test_nulls ()
193+ @null_test_parameters ()
194194 def test_struct_of_blobs (self , duckdb_cursor , col1_null , col2_null ):
195195 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
196196 if col1_null :
@@ -214,7 +214,7 @@ def test_struct_of_blobs(self, duckdb_cursor, col1_null, col2_null):
214214 ).fetchall ()
215215 assert res == expected_result (col1_null , col2_null , b'131072' )
216216
217- @test_nulls ()
217+ @null_test_parameters ()
218218 @pytest .mark .parametrize (
219219 ["constructor" , "unit" , "expected" ],
220220 [
@@ -252,7 +252,7 @@ def test_struct_of_time(self, duckdb_cursor, constructor, unit, expected, col1_n
252252 ).fetchall ()
253253 assert res == expected_result (col1_null , col2_null , expected )
254254
255- @test_nulls ()
255+ @null_test_parameters ()
256256 # NOTE: there is sadly no way to create a 'interval[months]' (tiM) type from pyarrow
257257 @pytest .mark .parametrize (
258258 ["constructor" , "expected" , "converter" ],
@@ -287,7 +287,7 @@ def test_struct_of_interval(self, duckdb_cursor, constructor, expected, converte
287287 ).fetchall ()
288288 assert res == expected_result (col1_null , col2_null , expected )
289289
290- @test_nulls ()
290+ @null_test_parameters ()
291291 @pytest .mark .parametrize (
292292 ["constructor" , "unit" , "expected" ],
293293 [
@@ -322,7 +322,7 @@ def test_struct_of_duration(self, duckdb_cursor, constructor, unit, expected, co
322322 ).fetchall ()
323323 assert res == expected_result (col1_null , col2_null , expected )
324324
325- @test_nulls ()
325+ @null_test_parameters ()
326326 @pytest .mark .parametrize (
327327 ["constructor" , "unit" , "expected" ],
328328 [
@@ -360,7 +360,7 @@ def test_struct_of_timestamp_tz(self, duckdb_cursor, constructor, unit, expected
360360 ).fetchall ()
361361 assert res == expected_result (col1_null , col2_null , expected )
362362
363- @test_nulls ()
363+ @null_test_parameters ()
364364 def test_struct_of_large_blobs (self , duckdb_cursor , col1_null , col2_null ):
365365 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
366366 if col1_null :
@@ -384,7 +384,7 @@ def test_struct_of_large_blobs(self, duckdb_cursor, col1_null, col2_null):
384384 ).fetchall ()
385385 assert res == expected_result (col1_null , col2_null , b'131072' )
386386
387- @test_nulls ()
387+ @null_test_parameters ()
388388 @pytest .mark .parametrize (
389389 ["precision_scale" , "expected" ],
390390 [
@@ -425,7 +425,7 @@ def test_struct_of_decimal(self, duckdb_cursor, precision_scale, expected, col1_
425425 ).fetchall ()
426426 assert res == expected_result (col1_null , col2_null , expected )
427427
428- @test_nulls ()
428+ @null_test_parameters ()
429429 def test_struct_of_small_list (self , duckdb_cursor , col1_null , col2_null ):
430430 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
431431 if col1_null :
@@ -455,7 +455,7 @@ def test_struct_of_small_list(self, duckdb_cursor, col1_null, col2_null):
455455 res2 = ['131072' , '131072' , '131072' ]
456456 assert res == [(res1 , res2 )]
457457
458- @test_nulls ()
458+ @null_test_parameters ()
459459 def test_struct_of_fixed_size_list (self , duckdb_cursor , col1_null , col2_null ):
460460 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
461461 if col1_null :
@@ -485,7 +485,7 @@ def test_struct_of_fixed_size_list(self, duckdb_cursor, col1_null, col2_null):
485485 res2 = ('131072' , '131072' , '131072' )
486486 assert res == [(res1 , res2 )]
487487
488- @test_nulls ()
488+ @null_test_parameters ()
489489 def test_struct_of_fixed_size_blob (self , duckdb_cursor , col1_null , col2_null ):
490490 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
491491 if col1_null :
@@ -516,7 +516,7 @@ def test_struct_of_fixed_size_blob(self, duckdb_cursor, col1_null, col2_null):
516516 res2 = (b'131072' , b'131073' , b'131074' )
517517 assert res == [(res1 , res2 )]
518518
519- @test_nulls ()
519+ @null_test_parameters ()
520520 def test_struct_of_list_of_blobs (self , duckdb_cursor , col1_null , col2_null ):
521521 col1 = [str (i ) for i in range (0 , MAGIC_ARRAY_SIZE )]
522522 if col1_null :
@@ -547,7 +547,7 @@ def test_struct_of_list_of_blobs(self, duckdb_cursor, col1_null, col2_null):
547547 res2 = [b'131072' , b'131073' , b'131074' ]
548548 assert res == [(res1 , res2 )]
549549
550- @test_nulls ()
550+ @null_test_parameters ()
551551 def test_struct_of_list_of_list (self , duckdb_cursor , col1_null , col2_null ):
552552 col1 = [i for i in range (0 , MAGIC_ARRAY_SIZE )]
553553 if col1_null :
0 commit comments